first commit

This commit is contained in:
libroot 2026-11-19 04:40:59 +02:00
commit 8c4dcae475
Signed by: libroot
GPG key ID: 2AC68C029EBE9ACE
89 changed files with 24623 additions and 0 deletions

54
templates/outlets.html Normal file
View 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">&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" . }}