46 lines
1.8 KiB
HTML
46 lines
1.8 KiB
HTML
{{ define "title" }}Pinned - Snowden Archive{{ end }}
|
|
{{ define "content" }}
|
|
<header class="list-header">
|
|
<h1>Pinned documents
|
|
<small class="count-note">{{ .Total }} pinned</small>
|
|
{{ if .Total }}<a href="/pinned/export" class="export-link" title="Download your pinned list as JSON">export JSON</a>{{ end }}
|
|
</h1>
|
|
</header>
|
|
<p class="muted">Pins are stored only in this browser's cookies.</p>
|
|
{{ if .Full }}
|
|
<p class="muted" role="status"><strong>Your pinned list is full.</strong> A browser cookie holds only so much, so that pin was not added. Unpin a document or a search below to make room.</p>
|
|
{{ end }}
|
|
|
|
{{ if .Cards.Docs }}
|
|
<h2 class="sr-only">Documents</h2>
|
|
{{ template "doc-cards" .Cards }}
|
|
{{ else }}
|
|
<p class="muted">Nothing pinned yet. Open a document and press <strong>☆ Pin</strong> to start a reading list.</p>
|
|
{{ end }}
|
|
|
|
{{ if .Searches }}
|
|
<h2 class="pinned-searches-heading">Pinned searches</h2>
|
|
<ul class="pinned-searches">
|
|
{{ range .Searches }}
|
|
<li class="pinned-search-item">
|
|
<a class="pill" href="{{ .URL }}">{{ .Label }}</a>
|
|
<form method="POST" action="/pinsearch" class="inline-form">
|
|
<input type="hidden" name="qs" value="{{ .QS }}">
|
|
<input type="hidden" name="back" value="/pinned">
|
|
<button type="submit" class="link-btn unpin-btn" title="Remove this search">★ unpin</button>
|
|
</form>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
|
|
<section class="note-list-box" id="note-list-box" hidden>
|
|
<h2>My notes
|
|
<button type="button" class="export-link" id="note-export" title="Download all notes as JSON">export JSON</button>
|
|
</h2>
|
|
<p class="muted">Stored only in this browser (localStorage).</p>
|
|
<ul class="note-list" id="note-list"></ul>
|
|
</section>
|
|
|
|
{{ end }}
|
|
{{ template "base.html" . }}
|