diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-10-06 13:22:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-06 13:22:59 +0200 |
commit | 86e1bc713fd7fa74d6a17a7687428fa1c6d3c5f2 (patch) | |
tree | 4c9b6c8a550b928dc734de5c78d8403f5631e161 /tpl | |
parent | 10a7b5cee96a742fbe86edbea977f3c55c92e9aa (diff) | |
parent | d9bf5b31ff9e2d007ddfb7f7756184f0ca9676c8 (diff) | |
download | Shaarli-86e1bc713fd7fa74d6a17a7687428fa1c6d3c5f2.tar.gz Shaarli-86e1bc713fd7fa74d6a17a7687428fa1c6d3c5f2.tar.zst Shaarli-86e1bc713fd7fa74d6a17a7687428fa1c6d3c5f2.zip |
Merge pull request #1144 from ArthurHoaro/feature/sticky
Add a button to set links as sticky
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/default/linklist.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 8ea2ce66..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> |
@@ -201,7 +203,23 @@ | |||
201 | <i class="fa fa-trash"></i> | 203 | <i class="fa fa-trash"></i> |
202 | </a> | 204 | </a> |
203 | </span> | 205 | </span> |
206 | <span class="linklist-item-infos-controls-item ctrl-pin"> | ||
207 | <a href="?do=pin&id={$value.id}&token={$token}" | ||
208 | title="{$strToggleSticky}" class="pin-link {if="$value.sticky"}pinned-link{/if} pure-u-0 pure-u-lg-visible"> | ||
209 | <i class="fa fa-thumb-tack"></i> | ||
210 | </a> | ||
211 | </span> | ||
204 | </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} | ||
205 | {/if} | 223 | {/if} |
206 | <a href="?{$value.shorturl}" title="{$strPermalink}"> | 224 | <a href="?{$value.shorturl}" title="{$strPermalink}"> |
207 | {if="!$hide_timestamps || $is_logged_in"} | 225 | {if="!$hide_timestamps || $is_logged_in"} |