snowchive-server/templates/outlets.html
2026-11-19 04:40:59 +02:00

54 lines
1.8 KiB
HTML

{{ define "title" }}Publishers by year - Snowden Archive{{ end }}
{{ define "content" }}
<header class="list-header">
<p class="crumb"><a href="/explore">&larr; 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> &middot; <strong>reported only</strong>
{{ else }}<strong>all collections</strong> &middot; <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" . }}