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: 75%; |
---|
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 0 0 .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 | .tags a { |
---|
46 | color: #999; |
---|
47 | text-decoration: none; |
---|
48 | } |
---|
49 | .tags a:hover { |
---|
50 | text-decoration: underline; |
---|
51 | } |
---|
52 | .tags { |
---|
53 | color: #999; |
---|
54 | margin-top: .125em; |
---|
55 | margin-left: 3em; |
---|
56 | font-size: .875em; |
---|
57 | } |
---|
58 | </style> |
---|
59 | </head> |
---|
60 | <body> |
---|
61 | <form method="get" action=""> |
---|
62 | <select name="tag" onchange="document.forms[0].submit()"> |
---|
63 | <option value="">All bookmarks</option> |
---|
64 | [% FOREACH tag IN tags %] |
---|
65 | <option value="[% tag.tag %]" [% IF tag.selected %]selected="selected"[% END %]>[% tag.tag %] ([% tag.count %])</option> |
---|
66 | [% END %] |
---|
67 | </select> |
---|
68 | <input type="submit" value="Go"/> |
---|
69 | </form> |
---|
70 | <!-- |
---|
71 | <select> |
---|
72 | [% FOREACH tag IN cotags %] |
---|
73 | <option>[% tag.tag %] ([% tag.count %])</option> |
---|
74 | [% END %] |
---|
75 | </select> |
---|
76 | --> |
---|
77 | <ul style=""> |
---|
78 | [% FOREACH resource IN resources %] |
---|
79 | <li> |
---|
80 | <span class="edit"> |
---|
81 | (<a href="[% resource.id %]" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250').focus(); return false;">Edit</a>) |
---|
82 | </span> |
---|
83 | <a href="[% resource.uri %]" title="[% resource.title | html %] ([% resource.tags.join(', ') %])">[% resource.title or resource.uri %]</a> |
---|
84 | <div class="tags"> |
---|
85 | [% FOREACH tag IN resource.tags %] |
---|
86 | [% IF loop.first %]([% END %]<a target="_self" href="?tag=[% tag %]">[% tag %]</a>[% IF loop.last %])[% ELSE %], [% END %] |
---|
87 | [% END %] |
---|
88 | </div> |
---|
89 | </li> |
---|
90 | [% END %] |
---|
91 | </ul> |
---|
92 | [% IF selected_tag %] |
---|
93 | <p> |
---|
94 | <a href="?tag=[% selected_tag %]">[% selected_tag %] links</a> |
---|
95 | </p> |
---|
96 | [% END %] |
---|
97 | <p> |
---|
98 | <a href="?uri=" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250'); return false;">New Bookmark</a> |
---|
99 | </p> |
---|
100 | <form method="get" action=""> |
---|
101 | [% IF selected_tag %] |
---|
102 | <input type="hidden" name="tag" value="[% selected_tag %]"/> |
---|
103 | [% END %] |
---|
104 | <div> |
---|
105 | <input type="submit" value="Reload"/> |
---|
106 | </div> |
---|
107 | </form> |
---|
108 | </body> |
---|
109 | </html> |
---|
110 | |
---|
111 | <!-- |
---|
112 | vim:syntax=html |
---|
113 | --> |
---|