first commit
This commit is contained in:
commit
8c4dcae475
89 changed files with 24623 additions and 0 deletions
38
templates/codewords.html
Normal file
38
templates/codewords.html
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{{ define "title" }}Acronyms & codewords - Snowden Archive{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<header class="list-header">
|
||||
<p class="crumb"><a href="/explore">← Explore</a></p>
|
||||
<h1>Acronyms & codewords</h1>
|
||||
</header>
|
||||
|
||||
<p class="muted">ALL-CAPS tokens (3+ letters) extracted automatically from titles and
|
||||
transcripts - acronyms, program names, compartments, org designators. This is a
|
||||
text statistic, not curated metadata. A token links to a search for the word in any
|
||||
letter case, across the metadata too, so the search can find more documents than the
|
||||
capitals counted here.</p>
|
||||
|
||||
<div class="table-scroll">
|
||||
<table class="data-table codeword-table">
|
||||
<thead>
|
||||
<tr>{{ range .Heads }}{{ template "sort-th" . }}{{ end }}</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ if .RowsHTML }}{{ .RowsHTML }}{{ else }}{{ template "codeword-rows" . }}{{ end }} </tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ template "base.html" . }}
|
||||
|
||||
{{ define "codeword-rows" }} {{ range .Rows }}
|
||||
<tr>
|
||||
<td><a href="{{ .SearchURL }}">{{ .Token }}</a>{{ if .ProgURL }} <a class="faint cw-prog" href="{{ .ProgURL }}" title="Also a curated program - its page tracks metadata mentions, including descriptions">program →</a>{{ end }}</td>
|
||||
<td>{{ .Count }}</td>
|
||||
<td>{{ .Docs }}</td>
|
||||
<td>{{ if .First }}<a href="{{ .FirstURL }}">{{ .First }}</a>{{ else }}<span class="faint">-</span>{{ end }}</td>
|
||||
<td>{{ if .Last }}<a href="{{ .LastURL }}">{{ .Last }}</a>{{ else }}<span class="faint">-</span>{{ end }}</td>
|
||||
<td>{{ if .Gloss }}<a href="{{ .GlossURL }}">defined</a>{{ else }}<span class="faint">-</span>{{ end }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue