]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - tpl/default/linklist.html
Documentation+Makefile: update AUTHORS generation
[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 class="linkcount pure-u-0 pure-u-lg-visible">
10 {if="!empty($linkcount)"}
11 <span class="strong">{$linkcount}</span> {function="t('shaare', 'shaares', $linkcount)"}
12 {if="$privateLinkcount>0"}
13 <br><span class="strong">{$privateLinkcount}</span> {function="t('private link', 'private links', $privateLinkcount)"}
14 {/if}
15 {/if}
16 </div>
17
18 <input type="hidden" name="token" value="{$token}">
19
20 <div id="search-linklist">
21
22 <form method="GET" class="pure-form searchform" name="searchform">
23 <input type="text" tabindex="1" name="searchterm" class="searchterm" placeholder="{'Search text'|t}"
24 {if="!empty($search_term)"}
25 value="{$search_term}"
26 {/if}
27 >
28 <input type="text" tabindex="2" name="searchtags" class="searchtags" placeholder="{'Filter by tag'|t}"
29 {if="!empty($search_tags)"}
30 value="{$search_tags}"
31 {/if}
32 autocomplete="off" data-multiple data-autofirst data-minChars="1"
33 data-list="{loop="$tags"}{$key}, {/loop}"
34 >
35 <button type="submit" class="search-button"><i class="fa fa-search"></i></button>
36 </form>
37 </div>
38
39 {loop="$plugins_header.fields_toolbar"}
40 <form
41 {loop="$value.attr"}
42 {$key}="{$value}"
43 {/loop}>
44 <div class="toolbar-plugin pure-u-lg-1">
45 {loop="$value.inputs"}
46 <input
47 {loop="$value"}
48 {$key}="{$value}"
49 {/loop}>
50 {/loop}
51 </div>
52 </form>
53 {/loop}
54
55 <div id="linklist">
56 <div class="pure-g">
57 <div class="pure-u-lg-2-24 pure-u-1-24"></div>
58 <div class="pure-u-lg-20-24 pure-u-22-24">
59 <div class="linkcount pure-u-lg-0 center">
60 {if="!empty($linkcount)"}
61 <span class="strong">{$linkcount}</span> {function="t('shaare', 'shaares', $linkcount)"}
62 {if="$privateLinkcount>0"}
63 &middot; <span class="strong">{$privateLinkcount}</span> {function="t('private link', 'private links', $privateLinkcount)"}
64 {/if}
65 {/if}
66 </div>
67
68 {include="linklist.paging"}
69
70 <div id="plugin_zone_start_linklist" class="plugin_zone">
71 {loop="$plugin_start_zone"}
72 {$value}
73 {/loop}
74 </div>
75 </div>
76 </div>
77
78 {if="count($links)==0"}
79 <div class="pure-g pure-alert pure-alert-error search-result">
80 <div class="pure-u-2-24"></div>
81 <div class="pure-u-20-24">
82 <div id="searchcriteria">{'Nothing found.'|t}</div>
83 </div>
84 </div>
85 {elseif="!empty($search_term) or $search_tags !== '' or !empty($visibility) or $untaggedonly"}
86 <div class="pure-g pure-alert pure-alert-success search-result">
87 <div class="pure-u-2-24"></div>
88 <div class="pure-u-20-24">
89 {function="t('%s result', '%s results', $result_count)"}
90 {if="!empty($search_term)"}
91 {'for'|t} <em><strong>{$search_term}</strong></em>
92 {/if}
93 {if="!empty($search_tags)"}
94 {$exploded_tags=explode(' ', $search_tags)}
95 {'tagged'|t}
96 {loop="$exploded_tags"}
97 <span class="label label-tag" title="{'Remove tag'|t}">
98 <a href="?removetag={function="urlencode($value)"}">{$value}<span class="remove"><i class="fa fa-times"></i></span></a>
99 </span>
100 {/loop}
101 {/if}
102 {if="!empty($visibility)"}
103 {'with status'|t}
104 <span class="label label-private">
105 {$visibility|t}
106 </span>
107 {/if}
108 {if="$untaggedonly"}
109 <span class="label label-private">
110 {'without any tag'|t}
111 </span>
112 {/if}
113 </div>
114 </div>
115 {/if}
116
117 <div class="pure-g">
118 <div class="pure-u-lg-2-24 pure-u-1-24"></div>
119 <div class="pure-u-lg-20-24 pure-u-22-24">
120 {loop="links"}
121 <div class="anchor" id="{$value.shorturl}"></div>
122 <div class="linklist-item linklist-item{if="$value.class"} {$value.class}{/if}" data-id="{$value.id}">
123
124 <div class="linklist-item-title">
125 {if="isLoggedIn()"}
126 <div class="linklist-item-editbuttons">
127 {if="$value.private"}
128 <span class="label label-private">{'Private'|t}</span>
129 {/if}
130 <input type="checkbox" class="delete-checkbox" value="{$value.id}">
131 <!-- FIXME! JS translation -->
132 <a href="?edit_link={$value.id}" title="{'Edit'|t}"><i class="fa fa-pencil-square-o edit-link"></i></a>
133 <a href="#" title="{'Fold'|t}" class="fold-button"><i class="fa fa-chevron-up"></i></a>
134 </div>
135 {/if}
136
137 <h2>
138 <a href="{$value.real_url}">
139 {if="strpos($value.url, $value.shorturl) === false"}
140 <i class="fa fa-external-link"></i>
141 {else}
142 <i class="fa fa-sticky-note"></i>
143 {/if}
144
145 <span class="linklist-link">{$value.title}</span>
146 </a>
147 </h2>
148 </div>
149
150 {$thumb=thumbnail($value.url)}
151 {if="$thumb!=false"}
152 <div class="linklist-item-thumbnail">{$thumb}</div>
153 {/if}
154
155 {if="$value.description"}
156 <div class="linklist-item-description">
157 {$value.description}
158 </div>
159 {/if}
160
161 <div class="linklist-item-infos clear">
162 {if="$value.tags"}
163 <div class="linklist-item-tags">
164 <i class="fa fa-tags"></i>
165 {$tag_counter=count($value.taglist)}
166 {loop="value.taglist"}
167 <span class="label label-tag" title="Add tag">
168 <a href="?addtag={$value|urlencode}">{$value}</a>
169 </span>
170 {if="$tag_counter - 1 != $counter"}&middot;{/if}
171 {/loop}
172 </div>
173 {/if}
174
175 <div class="pure-g">
176 <div class="linklist-item-infos-dateblock pure-u-lg-3-8 pure-u-1">
177 <a href="?{$value.shorturl}" title="{'Permalink'|t}">
178 {if="!$hide_timestamps || isLoggedIn()"}
179 {$updated=$value.updated_timestamp ? 'Edited: '. format_date($value.updated) : 'Permalink'}
180 <span class="linkdate" title="{$updated}">
181 <i class="fa fa-clock-o"></i>
182 {$value.created|format_date}
183 {if="$value.updated_timestamp"}*{/if}
184 &middot;
185 </span>
186 {/if}
187 {'permalink'|t}
188 </a>
189
190 <div class="pure-u-0 pure-u-lg-visible">
191 {if="isset($value.link_plugin)"}
192 &middot;
193 {$link_plugin_counter=count($value.link_plugin)}
194 {loop="$value.link_plugin"}
195 {$value}
196 {if="$link_plugin_counter - 1 != $counter"}&middot;{/if}
197 {/loop}
198 {/if}
199 </div>
200 </div><div
201 {ignore}do not add space or line break between these div - Firefox issue{/ignore}
202 class="linklist-item-infos-url pure-u-lg-5-8 pure-u-1">
203 <a href="{$value.real_url}" title="{$value.title}">
204 <i class="fa fa-link"></i> {$value.url}
205 </a>
206 {if="isLoggedIn()"}
207 <a href="?delete_link&amp;lf_linkdate={$value.id}&amp;token={$token}"
208 title="{'Delete'|t}" class="delete-link pure-u-0 pure-u-lg-visible confirm-delete">
209 <i class="fa fa-trash"></i>
210 </a>
211 {/if}
212 </div>
213 <div class="mobile-buttons pure-u-1 pure-u-lg-0">
214 {if="isset($value.link_plugin)"}
215 {$link_plugin_counter=count($value.link_plugin)}
216 {loop="$value.link_plugin"}
217 {$value}
218 {if="$link_plugin_counter - 1 != $counter"}&middot;{/if}
219 {/loop}
220 {/if}
221 {if="isLoggedIn()"}
222 &middot;
223 <a href="?delete_link&amp;lf_linkdate={$value.id}&amp;token={$token}"
224 title="{'Delete'|t}" class="delete-link confirm-delete">
225 <i class="fa fa-trash"></i>
226 </a>
227 {/if}
228 </div>
229 </div>
230 </div>
231 </div>
232 {/loop}
233 </div>
234 </div>
235 </div>
236
237 <div id="plugin_zone_end_linklist" class="plugin_zone">
238 {loop="$plugin_end_zone"}
239 {$value}
240 {/loop}
241 </div>
242
243 <div class="pure-g">
244 <div class="pure-u-lg-2-24 pure-u-1-24"></div>
245 <div class="pure-u-lg-20-24 pure-u-22-24">
246 {include="linklist.paging"}
247 </div>
248 </div>
249
250 {include="page.footer"}
251 </body>
252 </html>