first commit
This commit is contained in:
commit
8c4dcae475
89 changed files with 24623 additions and 0 deletions
54
templates/outlets.html
Normal file
54
templates/outlets.html
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{{ define "title" }}Publishers by year - Snowden Archive{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<header class="list-header">
|
||||
<p class="crumb"><a href="/explore">← Explore</a></p>
|
||||
<h1>Publishers by year</h1>
|
||||
</header>
|
||||
|
||||
<p class="muted">When each publisher released documents, and how much. The number of
|
||||
distinct stories are after the slash.</p>
|
||||
|
||||
<p class="hist-toggles faint">Showing:
|
||||
{{ if .NewsOnly }}<a href="/explore/outlets">all collections</a> · <strong>reported only</strong>
|
||||
{{ else }}<strong>all collections</strong> · <a href="/explore/outlets?coll=news">reported only</a>{{ end }}
|
||||
</p>
|
||||
|
||||
{{ with .Table }}
|
||||
{{ if .Rows }}
|
||||
<div class="table-scroll">
|
||||
<table class="data-table heat-table outlet-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Outlet</th>
|
||||
{{ range .YearLinks }}<th class="num"><a href="{{ .URL }}">{{ .Name }}</a></th>{{ end }}
|
||||
<th class="num-col">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ range .Rows }}
|
||||
<tr>
|
||||
<td><a href="{{ .URL }}">{{ .Name }}</a></td>
|
||||
{{ range .Cells }}
|
||||
<td class="heat-cell">{{ if .Docs }}<a href="{{ .URL }}" title="{{ .Docs }} documents, {{ .Articles }} stories">{{ .Docs }}{{ if .Articles }}<small class="faint">/{{ .Articles }}</small>{{ end }}</a>{{ else }}<span class="faint">-</span>{{ end }}</td>
|
||||
{{ end }}
|
||||
<td class="num-col">{{ .Total }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>All outlets</th>
|
||||
{{ range .Totals }}<th class="num-col">{{ if . }}{{ . }}{{ else }}<span class="faint">-</span>{{ end }}</th>{{ end }}
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
{{ else }}
|
||||
<p class="muted">No dated publications in the corpus yet.</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ template "base.html" . }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue