[2] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <title>Bookmarks</title> |
---|
[3] | 4 | <base href="[% base_url %]"/> |
---|
[2] | 5 | <style type="text/css"> |
---|
| 6 | a:hover { |
---|
| 7 | text-decoration: none; |
---|
| 8 | } |
---|
| 9 | .edit { |
---|
| 10 | font-size: .85em; |
---|
| 11 | } |
---|
[4] | 12 | input, select { |
---|
| 13 | font-size: .875em; |
---|
| 14 | font-family: 'DejaVu Sans', sans-serif; |
---|
| 15 | } |
---|
[2] | 16 | body, th, td { |
---|
| 17 | margin: 0; |
---|
[4] | 18 | font-size: .75em; |
---|
| 19 | font-family: 'DejaVu Sans', sans-serif; |
---|
[2] | 20 | } |
---|
| 21 | ul { |
---|
[10] | 22 | height: 75%; |
---|
[2] | 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 { |
---|
[11] | 30 | padding: .25em 0 0 .25em; |
---|
[2] | 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 | } |
---|
[11] | 45 | .tags a { |
---|
| 46 | color: #999; |
---|
| 47 | text-decoration: none; |
---|
| 48 | } |
---|
| 49 | .tags a:hover { |
---|
| 50 | text-decoration: underline; |
---|
| 51 | } |
---|
[10] | 52 | .tags { |
---|
[11] | 53 | color: #999; |
---|
| 54 | margin-top: .125em; |
---|
| 55 | margin-left: 3em; |
---|
| 56 | font-size: .875em; |
---|
[10] | 57 | } |
---|
[2] | 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> |
---|
[10] | 70 | <!-- |
---|
[2] | 71 | <select> |
---|
| 72 | [% FOREACH tag IN cotags %] |
---|
| 73 | <option>[% tag.tag %] ([% tag.count %])</option> |
---|
| 74 | [% END %] |
---|
| 75 | </select> |
---|
[10] | 76 | --> |
---|
[2] | 77 | <ul style=""> |
---|
| 78 | [% FOREACH resource IN resources %] |
---|
| 79 | <li> |
---|
| 80 | <span class="edit"> |
---|
[3] | 81 | (<a href="[% resource.id %]" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250').focus(); return false;">Edit</a>) |
---|
[2] | 82 | </span> |
---|
| 83 | <a href="[% resource.uri %]" title="[% resource.title | html %] ([% resource.tags.join(', ') %])">[% resource.title or resource.uri %]</a> |
---|
[11] | 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> |
---|
[2] | 89 | </li> |
---|
| 90 | [% END %] |
---|
| 91 | </ul> |
---|
[10] | 92 | [% IF selected_tag %] |
---|
| 93 | <p> |
---|
[16] | 94 | <a href="?tag=[% selected_tag %]">[% selected_tag %] links</a> · |
---|
| 95 | <a href="feed?tag=[% selected_tag %]" type="application/atom+xml">Atom Feed</a> |
---|
[10] | 96 | </p> |
---|
| 97 | [% END %] |
---|
[2] | 98 | <form method="get" action=""> |
---|
| 99 | [% IF selected_tag %] |
---|
| 100 | <input type="hidden" name="tag" value="[% selected_tag %]"/> |
---|
| 101 | [% END %] |
---|
| 102 | <div> |
---|
| 103 | <input type="submit" value="Reload"/> |
---|
| 104 | </div> |
---|
| 105 | </form> |
---|
| 106 | </body> |
---|
| 107 | </html> |
---|
| 108 | |
---|
| 109 | <!-- |
---|
| 110 | vim:syntax=html |
---|
| 111 | --> |
---|