source: bookmarks/trunk/list.tt @ 10

Last change on this file since 10 was 10, checked in by peter, 12 years ago
  • increased the height of the bookmarks list
  • hid the "cotags" dropdown (until we do something with it)
  • moved the "?tag=..." permalink to below the list
  • included the list of tags for each bookmark after the link
File size: 2.3 KB
Line 
1<html>
2  <head>
3    <title>Bookmarks</title>
4    <base href="[% base_url %]"/>
5    <style type="text/css">
6a:hover {
7    text-decoration: none;
8}
9.edit {
10    font-size: .85em;
11}
12input, select {
13    font-size: .875em;
14    font-family: 'DejaVu Sans', sans-serif;
15}
16body, th, td {
17    margin: 0;
18    font-size: .75em;
19    font-family: 'DejaVu Sans', sans-serif;
20}
21ul {
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}
29li {
30    padding: .25em;
31    color: #999;
32    white-space: nowrap;
33    list-style-type: none;
34}
35th {
36    text-align: right;
37    font-weight: normal;
38}
39form {
40    margin: .5em;
41}
42p {
43    margin: .5em;
44}
45.tags {
46    color: #666;
47}
48    </style>
49  </head>
50  <body>
51    <form method="get" action="">
52      <select name="tag" onchange="document.forms[0].submit()">
53        <option value="">All bookmarks</option>
54        [% FOREACH tag IN tags %]
55          <option value="[% tag.tag %]" [% IF tag.selected %]selected="selected"[% END %]>[% tag.tag %] ([% tag.count %])</option>
56        [% END %]
57      </select>
58      <input type="submit" value="Go"/>
59    </form>
60    <!--
61    <select>
62    [% FOREACH tag IN cotags %]
63      <option>[% tag.tag %] ([% tag.count %])</option>
64    [% END %]
65    </select>
66    -->
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          <span class="tags">([% resource.tags.join(', ') %])</span>
75        </li>
76      [%  END %]
77    </ul>
78    [% IF selected_tag %]
79      <p>
80        <a href="?tag=[% selected_tag %]">[% selected_tag %] links</a>
81      </p>
82    [% END %]
83    <p>
84      <a href="?uri=" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250'); return false;">New Bookmark</a>
85    </p>
86    <form method="get" action="">
87      [% IF selected_tag %]
88        <input type="hidden" name="tag" value="[% selected_tag %]"/>
89      [% END %]
90      <div>
91        <input type="submit" value="Reload"/>
92      </div>
93    </form>
94  </body>
95</html>
96
97<!--
98vim:syntax=html
99-->
Note: See TracBrowser for help on using the repository browser.