[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 { |
---|
| 22 | margin: 0; |
---|
| 23 | padding: 0; |
---|
[20] | 24 | } |
---|
| 25 | ul.main { |
---|
| 26 | height: 60%; |
---|
[2] | 27 | border-top: 6px solid #eee; |
---|
| 28 | border-bottom: 6px solid #eee; |
---|
| 29 | } |
---|
[20] | 30 | .refine { |
---|
| 31 | height: 15%; |
---|
| 32 | } |
---|
| 33 | .cotags { |
---|
| 34 | height: 100%; |
---|
| 35 | border: 1px dotted #999; |
---|
| 36 | } |
---|
| 37 | ul.main, ul.cotags { |
---|
| 38 | overflow-y: scroll !important; |
---|
| 39 | } |
---|
[2] | 40 | li { |
---|
[11] | 41 | padding: .25em 0 0 .25em; |
---|
[2] | 42 | color: #999; |
---|
| 43 | white-space: nowrap; |
---|
| 44 | list-style-type: none; |
---|
| 45 | } |
---|
| 46 | th { |
---|
| 47 | text-align: right; |
---|
| 48 | font-weight: normal; |
---|
| 49 | } |
---|
| 50 | form { |
---|
| 51 | margin: .5em; |
---|
| 52 | } |
---|
| 53 | p { |
---|
| 54 | margin: .5em; |
---|
| 55 | } |
---|
[11] | 56 | .tags a { |
---|
| 57 | color: #999; |
---|
| 58 | text-decoration: none; |
---|
| 59 | } |
---|
| 60 | .tags a:hover { |
---|
| 61 | text-decoration: underline; |
---|
| 62 | } |
---|
[10] | 63 | .tags { |
---|
[11] | 64 | color: #999; |
---|
| 65 | margin-top: .125em; |
---|
| 66 | margin-left: 3em; |
---|
| 67 | font-size: .875em; |
---|
[10] | 68 | } |
---|
[2] | 69 | </style> |
---|
| 70 | </head> |
---|
| 71 | <body> |
---|
| 72 | <form method="get" action=""> |
---|
| 73 | <select name="tag" onchange="document.forms[0].submit()"> |
---|
| 74 | <option value="">All bookmarks</option> |
---|
[20] | 75 | [% FOREACH tag IN all_tags %] |
---|
[2] | 76 | <option value="[% tag.tag %]" [% IF tag.selected %]selected="selected"[% END %]>[% tag.tag %] ([% tag.count %])</option> |
---|
| 77 | [% END %] |
---|
| 78 | </select> |
---|
| 79 | <input type="submit" value="Go"/> |
---|
| 80 | </form> |
---|
[20] | 81 | <ul class="main"> |
---|
[2] | 82 | [% FOREACH resource IN resources %] |
---|
| 83 | <li> |
---|
| 84 | <span class="edit"> |
---|
[3] | 85 | (<a href="[% resource.id %]" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250').focus(); return false;">Edit</a>) |
---|
[2] | 86 | </span> |
---|
| 87 | <a href="[% resource.uri %]" title="[% resource.title | html %] ([% resource.tags.join(', ') %])">[% resource.title or resource.uri %]</a> |
---|
[11] | 88 | <div class="tags"> |
---|
| 89 | [% FOREACH tag IN resource.tags %] |
---|
| 90 | [% IF loop.first %]([% END %]<a target="_self" href="?tag=[% tag %]">[% tag %]</a>[% IF loop.last %])[% ELSE %], [% END %] |
---|
| 91 | [% END %] |
---|
| 92 | </div> |
---|
[2] | 93 | </li> |
---|
| 94 | [% END %] |
---|
| 95 | </ul> |
---|
[20] | 96 | <form method="get" action="" id="reload"> |
---|
[2] | 97 | <div> |
---|
[20] | 98 | [% IF selected_tag %] |
---|
| 99 | <a href="?tag=[% selected_tag %]">[% selected_tag %] links</a> · |
---|
| 100 | <a href="feed?tag=[% selected_tag %]" type="application/atom+xml">Atom Feed</a> |
---|
| 101 | <input type="hidden" name="tag" value="[% selected_tag %]"/> |
---|
| 102 | [% END %] |
---|
| 103 | <input type="submit" value="Reload"/> |
---|
[2] | 104 | </div> |
---|
| 105 | </form> |
---|
[20] | 106 | <div class="refine"> |
---|
| 107 | <form method="get" action=""> |
---|
| 108 | <div class="taglists"> |
---|
| 109 | <ul class="searchtags"> |
---|
| 110 | [% FOREACH tag IN search_tags %] |
---|
| 111 | <li> |
---|
| 112 | <label> |
---|
| 113 | <input type="checkbox" name="tag" value="[% tag %]" checked="checked"/> |
---|
| 114 | [% tag %] |
---|
| 115 | </label> |
---|
| 116 | </li> |
---|
| 117 | [% END %] |
---|
| 118 | </ul> |
---|
| 119 | [% IF cotags.size %] |
---|
| 120 | <ul class="cotags"> |
---|
| 121 | [% FOREACH tag IN cotags %] |
---|
| 122 | <li> |
---|
| 123 | <label> |
---|
| 124 | <input type="checkbox" name="tag" value="[% tag.tag %]"/> |
---|
| 125 | [% tag.tag %] ([% tag.count %]) |
---|
| 126 | </label> |
---|
| 127 | </li> |
---|
| 128 | [% END %] |
---|
| 129 | </ul> |
---|
| 130 | [% END %] |
---|
| 131 | </div> |
---|
| 132 | <div> |
---|
| 133 | <input type="submit" value="Refine"/> |
---|
| 134 | </div> |
---|
| 135 | </form> |
---|
| 136 | </div> |
---|
[2] | 137 | </body> |
---|
| 138 | </html> |
---|
| 139 | |
---|
| 140 | <!-- |
---|
| 141 | vim:syntax=html |
---|
| 142 | --> |
---|