]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - tpl/default/linklist.html
Desktop search fields
[github/shaarli/Shaarli.git] / tpl / default / linklist.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 {include="includes"}
5 </head>
6 <body>
7 {include="page.header"}
8
9 <div id="headerform" class="search">
10
11 <!--{loop="$plugins_header.fields_toolbar"}
12 {$value}
13 {/loop}-->
14 </div>
15
16 <div id="linklist">
17
18 {include="linklist.paging"}
19
20 <div id="plugin_zone_start_linklist" class="plugin_zone">
21 {loop="$plugin_start_zone"}
22 {$value}
23 {/loop}
24 </div>
25
26 {if="count($links)==0"}
27 <div id="searchcriteria">Nothing found.</i></div>
28 {else}
29 {if="$search_type=='fulltext'"}
30 <div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div>
31 {/if}
32 {if="$search_type=='tags'"}
33 <div id="searchcriteria">{$result_count} results for tags <i>
34 {loop="search_crits"}
35 <span class="linktag" title="Remove tag">
36 <a href="?removetag={function="urlencode($value)"}">{$value} <span class="remove">x</span></a>
37 </span>
38 {/loop}</i></div>
39 {/if}
40 {/if}
41 <ul>
42 {loop="links"}
43 <li{if="$value.class"} class="{$value.class}"{/if}>
44 <a id="{$value.shorturl}"></a>
45 <div class="thumbnail">{$value.url|thumbnail}</div>
46 <div class="linkcontainer">
47 {if="isLoggedIn()"}
48 <div class="linkeditbuttons">
49 <form method="GET" class="buttoneditform">
50 <input type="hidden" name="edit_link" value="{$value.linkdate}">
51 <input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit">
52 </form><br>
53 <form method="POST" class="buttoneditform">
54 <input type="hidden" name="lf_linkdate" value="{$value.linkdate}">
55 <input type="hidden" name="token" value="{$token}">
56 <input type="hidden" name="delete_link">
57 <input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete"
58 class="button_delete" onClick="return confirmDeleteLink();">
59 </form>
60 </div>
61 {/if}
62 <span class="linktitle">
63 <a href="{$value.real_url}">{$value.title}</a>
64 </span>
65 <br>
66 {if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if}
67 {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
68 <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{function="strftime('%c', $value.timestamp)"} - permalink</a> - </span>
69 {else}
70 <span class="linkdate" title="Short link here"><a href="?{$value.shorturl}">permalink</a> - </span>
71 {/if}
72
73 {loop="$value.link_plugin"}
74 <span>{$value}</span> -
75 {/loop}
76
77 <a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br>
78 {if="$value.tags"}
79 <div class="linktaglist">
80 {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop}
81 </div>
82 {/if}
83
84
85 </div>
86 </li>
87 {/loop}
88 </ul>
89
90 <div id="plugin_zone_end_linklist" class="plugin_zone">
91 {loop="$plugin_end_zone"}
92 {$value}
93 {/loop}
94 </div>
95
96 {include="linklist.paging"}
97
98 </div>
99
100 {include="page.footer"}
101 </body>
102 </html>