1 | <html> |
---|
2 | <head> |
---|
3 | <title>Bookmarks</title> |
---|
4 | <base href="[% base_url %]"/> |
---|
5 | <style type="text/css"> |
---|
6 | a:hover { |
---|
7 | text-decoration: none; |
---|
8 | } |
---|
9 | .edit { |
---|
10 | font-size: .85em; |
---|
11 | } |
---|
12 | input, select { |
---|
13 | font-size: .875em; |
---|
14 | font-family: 'DejaVu Sans', sans-serif; |
---|
15 | } |
---|
16 | body, th, td { |
---|
17 | margin: 0; |
---|
18 | font-size: .75em; |
---|
19 | font-family: 'DejaVu Sans', sans-serif; |
---|
20 | } |
---|
21 | ul { |
---|
22 | height: 60%; |
---|
23 | overflow-y: scroll; |
---|
24 | margin: 0; |
---|
25 | padding: 0; |
---|
26 | border-top: 6px solid #eee; |
---|
27 | border-bottom: 6px solid #eee; |
---|
28 | } |
---|
29 | li { |
---|
30 | padding: .25em; |
---|
31 | color: #999; |
---|
32 | white-space: nowrap; |
---|
33 | list-style-type: none; |
---|
34 | } |
---|
35 | th { |
---|
36 | text-align: right; |
---|
37 | font-weight: normal; |
---|
38 | } |
---|
39 | form { |
---|
40 | margin: .5em; |
---|
41 | } |
---|
42 | p { |
---|
43 | margin: .5em; |
---|
44 | } |
---|
45 | </style> |
---|
46 | </head> |
---|
47 | <body> |
---|
48 | <form method="get" action=""> |
---|
49 | <select name="tag" onchange="document.forms[0].submit()"> |
---|
50 | <option value="">All bookmarks</option> |
---|
51 | [% FOREACH tag IN tags %] |
---|
52 | <option value="[% tag.tag %]" [% IF tag.selected %]selected="selected"[% END %]>[% tag.tag %] ([% tag.count %])</option> |
---|
53 | [% END %] |
---|
54 | </select> |
---|
55 | <input type="submit" value="Go"/> |
---|
56 | </form> |
---|
57 | [% IF selected_tag %] |
---|
58 | <p> |
---|
59 | <a href="?tag=[% selected_tag %]">[% selected_tag %] links</a> |
---|
60 | </p> |
---|
61 | [% END %] |
---|
62 | <select> |
---|
63 | [% FOREACH tag IN cotags %] |
---|
64 | <option>[% tag.tag %] ([% tag.count %])</option> |
---|
65 | [% END %] |
---|
66 | </select> |
---|
67 | <ul style=""> |
---|
68 | [% FOREACH resource IN resources %] |
---|
69 | <li> |
---|
70 | <span class="edit"> |
---|
71 | (<a href="[% resource.id %]" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250').focus(); return false;">Edit</a>) |
---|
72 | </span> |
---|
73 | <a href="[% resource.uri %]" title="[% resource.title | html %] ([% resource.tags.join(', ') %])">[% resource.title or resource.uri %]</a> |
---|
74 | </li> |
---|
75 | [% END %] |
---|
76 | </ul> |
---|
77 | <p> |
---|
78 | <a href="?uri=" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250'); return false;">New Bookmark</a> |
---|
79 | </p> |
---|
80 | <form method="get" action=""> |
---|
81 | [% IF selected_tag %] |
---|
82 | <input type="hidden" name="tag" value="[% selected_tag %]"/> |
---|
83 | [% END %] |
---|
84 | <div> |
---|
85 | <input type="submit" value="Reload"/> |
---|
86 | </div> |
---|
87 | </form> |
---|
88 | </body> |
---|
89 | </html> |
---|
90 | |
---|
91 | <!-- |
---|
92 | vim:syntax=html |
---|
93 | --> |
---|