From 4154c25b5f2f8044a37d7f84e04173bb54f2375b Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 22 May 2018 22:44:38 +0200 Subject: Add a button to set links as sticky Meaning that they always appear on top of all links Fixes #186 --- tpl/default/linklist.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tpl/default/linklist.html') diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 8ea2ce66..aaa9bc74 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -201,6 +201,12 @@ + + + + + {/if} -- cgit v1.2.3 From d9bf5b31ff9e2d007ddfb7f7756184f0ca9676c8 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 6 Oct 2018 13:09:11 +0200 Subject: Sticky feature - Add translation and display for logged out users --- tpl/default/linklist.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'tpl/default/linklist.html') 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 @@ {$strPermalink=t('Permalink')} {$strPermalinkLc=t('permalink')} {$strAddTag=t('Add tag')} + {$strToggleSticky=t('Toggle sticky')} + {$strSticky=t('Sticky')} {ignore}End of translations{/ignore} {loop="links"}
@@ -203,11 +205,21 @@
+ title="{$strToggleSticky}" class="pin-link {if="$value.sticky"}pinned-link{/if} pure-u-0 pure-u-lg-visible"> + {else} + {if="$value.sticky"} + + {/if} {/if} {if="!$hide_timestamps || $is_logged_in"} -- cgit v1.2.3