{{ define "title" }}{{ if eq .Collection "foia" }}FOIA{{ else if eq .Collection "sidtoday-archive" }}SIDtoday Archive{{ else }}Reported{{ end }} documents - Snowden Archive{{ end }} {{ define "content" }}
{{ if eq .Collection "sidtoday-archive" }}

SIDtoday Archive ({{ .Total }} issues)

All NSA SIDtoday newsletters in chronological order. This section includes The Intercept's bulk release plus issues that were individually reported by media (marked reported; those also appear in the Reported collection).

{{ with .SeriesList }}
Series {{ len . }} - recurring columns and multi-part runs

Full series table - sortable, with per-collection counts.

{{ end }}
{{ if eq .View "card" }}
{{ template "sort-bar" (dict "SortURL" .BaseURL "SortBy" .Sort "Order" .Order "ShowRelevance" false "DefaultSort" .DefaultSort) }}

Documents

{{ 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 }}

No documents in this collection yet.

{{ end }} {{ end }} {{ else }}

{{ if eq .Collection "foia" }}FOIA Documents{{ else }}Reported Documents{{ end }} ({{ .Total }} total)

{{ $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 }}

{{ 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 }}

{{ 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 }}

Documents

{{ template "doc-cards" .Cards }} {{ template "pagination" . }} {{ end }} {{ end }} {{ end }} {{ template "base.html" . }} {{ define "archive-timeline" }} {{ range .ArchiveYears }}

{{ .Year }} ({{ .Count }} issue{{ if ne .Count 1 }}s{{ end }})

{{ range .Months }}
{{ with .Name }}

{{ . }}

{{ end }}
{{ end }}
{{ end }} {{ end }}