150 lines
5.6 KiB
HTML
150 lines
5.6 KiB
HTML
{{ define "content" }}
|
|
<h1>Snowden Archive</h1>
|
|
|
|
<p class="muted home-intro">
|
|
This archive holds {{ .SnowdenTotal }} published Snowden documents. {{ .ReportedTotal }} documents are
|
|
published with news reporting, and {{ .ArchiveTotal }} documents are the NSA newsletter SIDtoday
|
|
issues, from The Intercept's bulk release.{{ if .FOIATotal }} This archive also holds {{ .FOIATotal }}
|
|
FOIA documents related to the Snowden disclosures (FOIA litigation, FISC and ODNI declassifications),
|
|
which {{ if .IncludeFOIA }}you have included via <a href="/preferences">Preferences</a>{{ else }}are left out by default but can be included via <a href="/preferences">Preferences</a>{{ end }}.{{ end }}
|
|
</p>
|
|
|
|
<form action="/search" method="GET" class="home-search-form" role="search">
|
|
<input type="text" name="q" class="home-search" placeholder="Search the archive... (Enter to search)" aria-label="Search the archive">
|
|
</form>
|
|
|
|
<div class="home-actions">
|
|
<a class="home-action" href="/browse">Browse the archive →</a>
|
|
</div>
|
|
|
|
{{ if and .TrackRecent .RecentDocs }}
|
|
<section class="home-section">
|
|
<h2>Recently viewed
|
|
<button type="submit" form="clear-recent-docs" class="link-btn faint">clear</button>
|
|
</h2>
|
|
<form method="POST" action="/history/clear" id="clear-recent-docs" class="inline-form">
|
|
<input type="hidden" name="which" value="docs">
|
|
<input type="hidden" name="back" value="/">
|
|
</form>
|
|
<ul class="stat-list">
|
|
{{ range .RecentDocs }}
|
|
<li><a href="/doc/{{ .ID }}">{{ .Title }}</a> <span class="muted">{{ .DocMeta.Creator }}</span></li>
|
|
{{ end }}
|
|
</ul>
|
|
</section>
|
|
{{ end }}
|
|
|
|
<p class="home-stats-note muted">{{ if .WithSIDtoday }}The statistics below include SIDtoday archive documents (<a href="/">exclude them</a>).{{ else }}The statistics below exclude SIDtoday archive documents (<a href="/?sidtoday=1">include them</a>).{{ end }}</p>
|
|
|
|
{{ if .DocHist }}
|
|
<section class="home-section">
|
|
<h2>When the documents were written</h2>
|
|
<div class="date-hist">
|
|
{{ range .DocHist }}
|
|
<a class="hist-col" href="{{ .URL }}" title="{{ .Count }} documents dated {{ .Year }}">
|
|
<span class="hist-count">{{ .Count }}</span>
|
|
<span class="hist-track"><span class="hist-bar" style="height: {{ .Pct }}%"></span></span>
|
|
<span class="hist-year">{{ .Year }}</span>
|
|
</a>
|
|
{{ end }}
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
|
|
{{ if .PubHist }}
|
|
<section class="home-section">
|
|
<h2>When they were published</h2>
|
|
<div class="date-hist">
|
|
{{ range .PubHist }}
|
|
<a class="hist-col" href="{{ .URL }}" title="{{ .Count }} documents first published in {{ .Year }}">
|
|
<span class="hist-count">{{ .Count }}</span>
|
|
<span class="hist-track"><span class="hist-bar" style="height: {{ .Pct }}%"></span></span>
|
|
<span class="hist-year">{{ .Year }}</span>
|
|
</a>
|
|
{{ end }}
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
|
|
{{ if .TopPrograms }}
|
|
<section class="home-section">
|
|
<h2>Top programs <a class="see-all" href="/browse/program">all →</a></h2>
|
|
<div class="pill-list">
|
|
{{ range .TopPrograms }}
|
|
<a class="pill" href="{{ .URL }}">{{ .Name }} <span class="pill-count">{{ .Count }}</span></a>
|
|
{{ end }}
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
|
|
<div class="home-grid">
|
|
{{ if .TopAgencies }}
|
|
<section class="home-section">
|
|
<h2>Agencies <a class="see-all" href="/browse/agency">all →</a></h2>
|
|
<ul class="stat-list">
|
|
{{ range .TopAgencies }}
|
|
<li><a href="{{ .URL }}">{{ .Name }}</a> <span class="muted">{{ .Count }}</span></li>
|
|
{{ end }}
|
|
</ul>
|
|
</section>
|
|
{{ end }}
|
|
|
|
{{ if .TopCountries }}
|
|
<section class="home-section">
|
|
<h2>Countries <a class="see-all" href="/browse/country">all →</a></h2>
|
|
<ul class="stat-list">
|
|
{{ range .TopCountries }}
|
|
<li><a href="{{ .URL }}">{{ .Name }}</a> <span class="muted">{{ .Count }}</span></li>
|
|
{{ end }}
|
|
</ul>
|
|
</section>
|
|
{{ end }}
|
|
|
|
{{ if .TopPeople }}
|
|
<section class="home-section">
|
|
<h2>People <a class="see-all" href="/browse/people">all →</a></h2>
|
|
<ul class="stat-list">
|
|
{{ range .TopPeople }}
|
|
<li><a href="{{ .URL }}">{{ .Name }}</a> <span class="muted">{{ .Count }}</span></li>
|
|
{{ end }}
|
|
</ul>
|
|
</section>
|
|
{{ end }}
|
|
|
|
{{ if .TopJournalists }}
|
|
<section class="home-section">
|
|
<h2>Journalists <a class="see-all" href="/browse/journalist">all →</a></h2>
|
|
<ul class="stat-list">
|
|
{{ range .TopJournalists }}
|
|
<li><a href="{{ .URL }}">{{ .Name }}</a> <span class="muted">{{ .Count }}</span></li>
|
|
{{ end }}
|
|
</ul>
|
|
</section>
|
|
{{ end }}
|
|
|
|
{{ if .TopPublishers }}
|
|
<section class="home-section">
|
|
<h2>Publishers <a class="see-all" href="/browse/publisher">all →</a></h2>
|
|
<ul class="stat-list">
|
|
{{ range .TopPublishers }}
|
|
<li><a href="{{ .URL }}">{{ .Name }}</a> <span class="muted">{{ .Count }}</span></li>
|
|
{{ end }}
|
|
</ul>
|
|
</section>
|
|
{{ end }}
|
|
</div>
|
|
|
|
{{ if .TopTags }}
|
|
<section class="home-section">
|
|
<h2>Top tags <a class="see-all" href="/browse/tag">all →</a></h2>
|
|
<div class="pill-list">
|
|
{{ range .TopTags }}
|
|
<a class="pill" href="{{ .URL }}">{{ .Name }} <span class="pill-count">{{ .Count }}</span></a>
|
|
{{ end }}
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
|
|
<p class="explore-link">Digging deeper? <a href="/explore">Explore the archive</a> for ranked views and lists.
|
|
{{ end }}
|
|
{{ template "base.html" . }}
|