155 lines
6.4 KiB
HTML
155 lines
6.4 KiB
HTML
{{ define "title" }}{{ if eq .Collection "foia" }}FOIA{{ else if eq .Collection "sidtoday-archive" }}SIDtoday Archive{{ else }}Reported{{ end }} documents - Snowden Archive{{ end }}
|
|
{{ define "content" }}
|
|
|
|
<hr class="section-rule">
|
|
|
|
<nav class="collection-tabs" aria-label="Collections">
|
|
<a href="/browse"
|
|
class="collection-tab {{ if eq .Collection "news" }}active-tab{{ end }}"
|
|
{{ if eq .Collection "news" }}aria-current="page"{{ end }}>
|
|
Reported <span class="tab-count">{{ index .CollectionCounts "news" }}</span>
|
|
</a>
|
|
<a href="/browse?collection=sidtoday-archive"
|
|
class="collection-tab {{ if eq .Collection "sidtoday-archive" }}active-tab{{ end }}"
|
|
{{ if eq .Collection "sidtoday-archive" }}aria-current="page"{{ end }}>
|
|
SIDtoday Archive <span class="tab-count">{{ .SIDTodayCount }}</span>
|
|
</a>
|
|
{{ if or .Prefs.IncludeFOIA (eq .Collection "foia") }}
|
|
<a href="/browse?collection=foia"
|
|
class="collection-tab {{ if eq .Collection "foia" }}active-tab{{ end }}"
|
|
{{ if eq .Collection "foia" }}aria-current="page"{{ end }}>
|
|
FOIA <span class="tab-count">{{ index .CollectionCounts "foia" }}</span>
|
|
</a>
|
|
{{ end }}
|
|
</nav>
|
|
|
|
{{ if eq .Collection "sidtoday-archive" }}
|
|
|
|
<header class="tab-header">
|
|
<h1 class="tab-title">SIDtoday Archive <small>({{ .Total }} issues)</small></h1>
|
|
<p class="tab-desc">
|
|
All NSA SIDtoday newsletters in chronological order. This section
|
|
includes The Intercept's bulk release plus issues that were individually
|
|
reported by media (marked <span class="issue-reported">reported</span>; those
|
|
also appear in the <a href="/browse">Reported</a> collection).
|
|
</p>
|
|
{{ with .SeriesList }}
|
|
<details class="series-index">
|
|
<summary>Series <span class="count">{{ len . }}</span> <span class="muted pref-note">- recurring columns and multi-part runs</span></summary>
|
|
<ul class="series-index-list">
|
|
{{ range . }}<li><a href="{{ .URL }}">{{ .Name }}</a> <span class="count">{{ .Count }}</span></li>{{ end }}
|
|
</ul>
|
|
<p class="muted pref-note"><a href="/browse/series">Full series table</a> - sortable, with per-collection counts.</p>
|
|
</details>
|
|
{{ end }}
|
|
<div class="browse-controls{{ if eq .View "table" }} browse-controls-spaced{{ end }}">
|
|
<div class="view-toggle">
|
|
<a href="/browse?collection=sidtoday-archive" class="{{ if and (ne .View "card") (ne .View "table") }}active-toggle{{ end }}">Timeline</a>
|
|
<a href="/browse?collection=sidtoday-archive&view=card" class="{{ if eq .View "card" }}active-toggle{{ end }}">Card View</a>
|
|
<a href="/browse?collection=sidtoday-archive&view=table" class="{{ if eq .View "table" }}active-toggle{{ end }}">Table View</a>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
{{ if eq .View "card" }}
|
|
<div class="sort-bar-spaced">{{ template "sort-bar" (dict "SortURL" .BaseURL "SortBy" .Sort "Order" .Order "ShowRelevance" false "DefaultSort" .DefaultSort) }}</div>
|
|
<h2 class="sr-only">Documents</h2>
|
|
{{ template "doc-cards" .Cards }}
|
|
{{ template "pagination" . }}
|
|
{{ else if eq .View "table" }}
|
|
{{ template "doc-table" . }}
|
|
{{ else }}
|
|
{{ if .ArchiveYears }}
|
|
{{ if .TimelineHTML }}{{ .TimelineHTML }}{{ else }}{{ template "archive-timeline" . }}{{ end }}{{ else }}
|
|
<p class="muted">No documents in this collection yet.</p>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
<header class="browse-header">
|
|
<h1 class="browse-title">
|
|
{{ if eq .Collection "foia" }}FOIA Documents{{ else }}Reported Documents{{ end }}
|
|
<small class="count-note">({{ .Total }} total)</small>
|
|
</h1>
|
|
|
|
{{ $cardURL := .SortURL }}
|
|
{{ $tableURL := print .SortURL "view=table" }}
|
|
{{ if .Sort }}
|
|
{{ $cardURL = print $cardURL "sort=" .Sort }}
|
|
{{ $tableURL = print $tableURL "&sort=" .Sort }}
|
|
{{ if .Order }}
|
|
{{ $cardURL = print $cardURL "&order=" .Order }}
|
|
{{ $tableURL = print $tableURL "&order=" .Order }}
|
|
{{ end }}
|
|
{{ end }}
|
|
<div class="browse-controls">
|
|
<div class="view-toggle">
|
|
<a href="{{ $cardURL }}" class="{{ if ne .View "table" }}active-toggle{{ end }}">Card View</a>
|
|
<a href="{{ $tableURL }}" class="{{ if eq .View "table" }}active-toggle{{ end }}">Table View</a>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<p class="tab-desc collection-desc">
|
|
{{ if eq .Collection "foia" }}
|
|
Documents released by government agencies under Freedom of Information Act
|
|
requests, rather than through the Snowden disclosures - obtained by
|
|
journalists, researchers, and transparency organizations and added here
|
|
for context.
|
|
{{ else }}
|
|
Documents published alongside news reporting on the Snowden disclosures.
|
|
{{ end }}
|
|
</p>
|
|
|
|
{{ if ne .View "table" }}
|
|
{{ template "sort-bar" (dict "SortURL" .SortURL "SortBy" .Sort "Order" .Order "ShowRelevance" false "DefaultSort" .DefaultSort) }}
|
|
{{ end }}
|
|
|
|
{{ if eq .Collection "news" }}
|
|
{{ template "type-filter" (dict
|
|
"Action" "/browse"
|
|
"Params" .Params
|
|
"AllTypes" .AllTypes
|
|
"SelectedTypes" .SelectedTypes
|
|
) }}
|
|
{{ end }}
|
|
|
|
{{ if eq .View "table" }}
|
|
{{ template "doc-table" . }}
|
|
{{ else }}
|
|
<h2 class="sr-only">Documents</h2>
|
|
{{ template "doc-cards" .Cards }}
|
|
{{ template "pagination" . }}
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
{{ template "base.html" . }}
|
|
|
|
{{ define "archive-timeline" }}<nav class="year-nav" aria-label="Jump to year">
|
|
<span class="year-nav-label">Jump to year:</span>
|
|
{{ range .ArchiveYears }}<a href="#y{{ .Year }}">{{ .Year }}</a>{{ end }}
|
|
</nav>
|
|
|
|
{{ range .ArchiveYears }}
|
|
<section class="archive-year" id="y{{ .Year }}">
|
|
<h2>{{ .Year }} <small>({{ .Count }} issue{{ if ne .Count 1 }}s{{ end }})</small></h2>
|
|
{{ range .Months }}
|
|
<div class="archive-month">
|
|
{{ with .Name }}<h3>{{ . }}</h3>{{ end }}
|
|
<ul class="archive-issues">
|
|
{{ range .Docs }}
|
|
<li>
|
|
<span class="issue-date">{{ with .DocMeta.DateCreated }}{{ . }}{{ else }}-{{ end }}</span>
|
|
<a href="/doc/{{ .ID }}">{{ .Title }}</a>
|
|
<a href="/files/{{ .ID }}/{{ pathEscape .PDFFile }}" target="_blank" rel="noopener" class="doc-pdf" title="Open PDF">[pdf]</a>
|
|
{{ if .ReportedIssue }}<span class="issue-reported" title="Individually reported - also in the Reported collection">reported</span>{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|
|
</section>
|
|
{{ end }}
|
|
{{ end }}
|