source: bookmarks/trunk/list.tt @ 2

Last change on this file since 2 was 2, checked in by peter, 12 years ago

Added exisiting bookmarks project files

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