first commit
This commit is contained in:
commit
8c4dcae475
89 changed files with 24623 additions and 0 deletions
50
templates/classpatterns.html
Normal file
50
templates/classpatterns.html
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{{ define "title" }}Classification patterns - Snowden Archive{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<header class="list-header">
|
||||
<p class="crumb"><a href="/explore">← Explore</a></p>
|
||||
<h1>Classification patterns</h1>
|
||||
</header>
|
||||
|
||||
<p class="muted">Two views of the marking metadata. Every number counts the
|
||||
documents carrying that exact classification component. A document carrying
|
||||
several markings counts once per marking.</p>
|
||||
|
||||
<h2>Mix by document year</h2>
|
||||
<div class="cls-legend">
|
||||
{{ range $i, $v := .Levels }}<span class="cls-key"><span class="cls-swatch seg-{{ $i }}"></span>{{ $v }}</span>{{ end }}
|
||||
</div>
|
||||
{{ range .Strips }}
|
||||
<div class="cls-row">
|
||||
<a class="cls-year" href="{{ .URL }}">{{ .Year }}</a>
|
||||
<span class="cls-strip">
|
||||
{{ range .Segs }}
|
||||
<a class="cls-seg {{ .Class }}" href="{{ .URL }}" style="width: {{ .Pct }}%" title="{{ .Value }}: {{ .Count }}"></a>
|
||||
{{ end }}
|
||||
</span>
|
||||
<span class="cls-total faint">{{ .Total }}</span>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ with .Sparse }}<p class="muted"><small>Not shown, with fewer than {{ $.MinMarks }} markings each:
|
||||
{{ range $i, $y := . }}{{ if $i }}, {{ end }}<a href="{{ $y.URL }}">{{ $y.Year }}</a> ({{ $y.Total }}){{ end }}.</small></p>{{ end }}
|
||||
<h2>Agency × classification</h2>
|
||||
<div class="table-scroll">
|
||||
<table class="data-table heat-table">
|
||||
<thead>
|
||||
<tr><th>Agency</th>{{ range .Cols }}<th><a href="{{ .URL }}">{{ .Name }}</a></th>{{ end }}</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ range .HeatRows }}
|
||||
<tr>
|
||||
<td><a href="{{ .URL }}">{{ .Name }}</a></td>
|
||||
{{ range .Cells }}
|
||||
<td class="heat-cell">{{ if .URL }}<a href="{{ .URL }}">{{ .Count }}</a>{{ else }}<span class="faint">-</span>{{ end }}</td>
|
||||
{{ end }}
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ template "base.html" . }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue