diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-10-06 13:09:11 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-10-06 13:13:57 +0200 |
commit | d9bf5b31ff9e2d007ddfb7f7756184f0ca9676c8 (patch) | |
tree | 4c9b6c8a550b928dc734de5c78d8403f5631e161 /tpl/default | |
parent | 4154c25b5f2f8044a37d7f84e04173bb54f2375b (diff) | |
download | Shaarli-d9bf5b31ff9e2d007ddfb7f7756184f0ca9676c8.tar.gz Shaarli-d9bf5b31ff9e2d007ddfb7f7756184f0ca9676c8.tar.zst Shaarli-d9bf5b31ff9e2d007ddfb7f7756184f0ca9676c8.zip |
Sticky feature - Add translation and display for logged out users
Diffstat (limited to 'tpl/default')
-rw-r--r-- | tpl/default/linklist.html | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index aaa9bc74..c04f4786 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html | |||
@@ -125,6 +125,8 @@ | |||
125 | {$strPermalink=t('Permalink')} | 125 | {$strPermalink=t('Permalink')} |
126 | {$strPermalinkLc=t('permalink')} | 126 | {$strPermalinkLc=t('permalink')} |
127 | {$strAddTag=t('Add tag')} | 127 | {$strAddTag=t('Add tag')} |
128 | {$strToggleSticky=t('Toggle sticky')} | ||
129 | {$strSticky=t('Sticky')} | ||
128 | {ignore}End of translations{/ignore} | 130 | {ignore}End of translations{/ignore} |
129 | {loop="links"} | 131 | {loop="links"} |
130 | <div class="anchor" id="{$value.shorturl}"></div> | 132 | <div class="anchor" id="{$value.shorturl}"></div> |
@@ -203,11 +205,21 @@ | |||
203 | </span> | 205 | </span> |
204 | <span class="linklist-item-infos-controls-item ctrl-pin"> | 206 | <span class="linklist-item-infos-controls-item ctrl-pin"> |
205 | <a href="?do=pin&id={$value.id}&token={$token}" | 207 | <a href="?do=pin&id={$value.id}&token={$token}" |
206 | title="{$strDelete}" class="pin-link {if="$value.sticky"}pinned-link{/if} pure-u-0 pure-u-lg-visible"> | 208 | title="{$strToggleSticky}" class="pin-link {if="$value.sticky"}pinned-link{/if} pure-u-0 pure-u-lg-visible"> |
207 | <i class="fa fa-thumb-tack"></i> | 209 | <i class="fa fa-thumb-tack"></i> |
208 | </a> | 210 | </a> |
209 | </span> | 211 | </span> |
210 | </div> | 212 | </div> |
213 | {else} | ||
214 | {if="$value.sticky"} | ||
215 | <div class="linklist-item-infos-controls-group pure-u-0 pure-u-lg-visible"> | ||
216 | <span class="linklist-item-infos-controls-item ctrl-pin"> | ||
217 | <span title="{$strSticky}" class="pin-link pinned-link pure-u-0 pure-u-lg-visible"> | ||
218 | <i class="fa fa-thumb-tack"></i> | ||
219 | </span> | ||
220 | </span> | ||
221 | </div> | ||
222 | {/if} | ||
211 | {/if} | 223 | {/if} |
212 | <a href="?{$value.shorturl}" title="{$strPermalink}"> | 224 | <a href="?{$value.shorturl}" title="{$strPermalink}"> |
213 | {if="!$hide_timestamps || $is_logged_in"} | 225 | {if="!$hide_timestamps || $is_logged_in"} |