]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - tpl/linklist.html
Merge pull request #391 from nicolasdanelon/patch-1
[github/shaarli/Shaarli.git] / tpl / linklist.html
CommitLineData
45034273
SS
1<!DOCTYPE html>
2<html>
65d62517
A
3<head>
4 <link type="text/css" rel="stylesheet" href="../inc/awesomplete.css" />
5 {include="includes"}
6</head>
45034273
SS
7<body>
8<div id="pageheader">
af77b2fd 9 {include="page.header"}
c133612f 10 <div id="headerform" class="search">
0923a2bc 11 <form method="GET" class="searchform" name="searchform">
b39b1bc2
A
12 <input type="text" tabindex="1" id="searchform_value" name="searchterm" placeholder="Search text" value="">
13 <input type="submit" value="Search" class="bigbutton">
14 </form>
65d62517 15 <form method="GET" class="tagfilter" name="tagfilter">
b39b1bc2
A
16 <input type="text" tabindex="2" name="searchtags" id="tagfilter_value" placeholder="Filter by tag" value=""
17 autocomplete="off" class="awesomplete" data-multiple data-minChars="1"
18 data-list="{loop="$tags"}{$key}, {/loop}">
65d62517
A
19 <input type="submit" value="Search" class="bigbutton">
20 </form>
567967fd
A
21 {loop="$plugins_header.fields_toolbar"}
22 {$value}
23 {/loop}
af77b2fd 24 </div>
45034273
SS
25</div>
26
27<div id="linklist">
28
29 {include="linklist.paging"}
30
567967fd
A
31 <div id="plugin_zone_start_linklist" class="plugin_zone">
32 {loop="$plugin_start_zone"}
33 {$value}
34 {/loop}
35 </div>
36
45034273
SS
37 {if="count($links)==0"}
38 <div id="searchcriteria">Nothing found.</i></div>
39 {else}
40 {if="$search_type=='fulltext'"}
41 <div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div>
42 {/if}
43 {if="$search_type=='tags'"}
44 <div id="searchcriteria">{$result_count} results for tags <i>
45 {loop="search_crits"}
b39b1bc2
A
46 <span class="linktag" title="Remove tag">
47 <a href="?removetag={$value}">{$value} <span class="remove">x</span></a>
48 </span>
45034273
SS
49 {/loop}</i></div>
50 {/if}
51 {/if}
52 <ul>
53 {loop="links"}
54 <li{if="$value.class"} class="{$value.class}"{/if}>
567967fd 55 <a id="{$value.shorturl}"></a>
45034273
SS
56 <div class="thumbnail">{$value.url|thumbnail}</div>
57 <div class="linkcontainer">
45034273 58 {if="isLoggedIn()"}
b2877611 59 <div class="linkeditbuttons">
b39b1bc2
A
60 <form method="GET" class="buttoneditform">
61 <input type="hidden" name="edit_link" value="{$value.linkdate}">
62 <input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit">
63 </form><br>
64 <form method="POST" class="buttoneditform">
65 <input type="hidden" name="lf_linkdate" value="{$value.linkdate}">
66 <input type="hidden" name="token" value="{$token}">
67 <input type="hidden" name="delete_link">
68 <input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete"
69 class="button_delete" onClick="return confirmDeleteLink();">
70 </form>
b2877611 71 </div>
45034273 72 {/if}
5f85fcd8 73 <span class="linktitle"><a href="{$redirector}{$value.url}">{$value.title}</a></span>
45034273 74 <br>
c133612f 75 {if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if}
45034273 76 {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
bec18701 77 <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{function="strftime('%c', $value.timestamp)"} - permalink</a> - </span>
45034273 78 {else}
567967fd 79 <span class="linkdate" title="Short link here"><a href="?{$value.shorturl}">permalink</a> - </span>
45034273 80 {/if}
567967fd
A
81
82 {loop="$value.link_plugin"}
83 <span>{$value}</span> -
84 {/loop}
85
5f85fcd8 86 <a href="{$value.url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br>
45034273
SS
87 {if="$value.tags"}
88 <div class="linktaglist">
5f85fcd8 89 {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop}
45034273
SS
90 </div>
91 {/if}
567967fd
A
92
93
45034273
SS
94 </div>
95 </li>
96 {/loop}
97 </ul>
98
567967fd
A
99 <div id="plugin_zone_end_linklist" class="plugin_zone">
100 {loop="$plugin_end_zone"}
101 {$value}
102 {/loop}
103 </div>
104
45034273
SS
105 {include="linklist.paging"}
106
107</div>
108
d741c9fc 109 {include="page.footer"}
af77b2fd 110
65d62517 111<script src="inc/awesomplete.min.js#"></script>
b39b1bc2
A
112<script src="inc/awesomplete-multiple-tags.js#"></script>
113<script>
114 awesompleteUniqueTag('#tagfilter_value');
115</script>
45034273 116</body>
af77b2fd 117</html>