diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-10-27 19:40:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 19:40:57 +0100 |
commit | 977db7eabc30cd9d84f22330a114cb9d904cb514 (patch) | |
tree | bcc2cb0dbad3ea27c38e676a20f3a377b50e9066 /tpl/default | |
parent | e6215a2ad97182efcf88ef532ec6bd65ae35fd19 (diff) | |
parent | 9c04921a8c28c18ef757f2d43ba35e7e2a7f1a4b (diff) | |
download | Shaarli-977db7eabc30cd9d84f22330a114cb9d904cb514.tar.gz Shaarli-977db7eabc30cd9d84f22330a114cb9d904cb514.tar.zst Shaarli-977db7eabc30cd9d84f22330a114cb9d904cb514.zip |
Merge pull request #1597 from ArthurHoaro/feature/share-private-bookmark
Feature: Share private bookmarks using a URL containing a private key
Diffstat (limited to 'tpl/default')
-rw-r--r-- | tpl/default/linklist.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 48cd9aad..e1115d49 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html | |||
@@ -129,6 +129,7 @@ | |||
129 | {$strAddTag=t('Add tag')} | 129 | {$strAddTag=t('Add tag')} |
130 | {$strToggleSticky=t('Toggle sticky')} | 130 | {$strToggleSticky=t('Toggle sticky')} |
131 | {$strSticky=t('Sticky')} | 131 | {$strSticky=t('Sticky')} |
132 | {$strShaarePrivate=t('Share a private link')} | ||
132 | {ignore}End of translations{/ignore} | 133 | {ignore}End of translations{/ignore} |
133 | {loop="links"} | 134 | {loop="links"} |
134 | <div class="anchor" id="{$value.shorturl}"></div> | 135 | <div class="anchor" id="{$value.shorturl}"></div> |
@@ -241,6 +242,12 @@ | |||
241 | {$strPermalinkLc} | 242 | {$strPermalinkLc} |
242 | </a> | 243 | </a> |
243 | 244 | ||
245 | {if="$is_logged_in && $value.private"} | ||
246 | <a href="{$base_path}/admin/shaare/private/{$value.shorturl}?token={$token}" title="{$strShaarePrivate}"> | ||
247 | <i class="fa fa-share-alt"></i> | ||
248 | </a> | ||
249 | {/if} | ||
250 | |||
244 | <div class="pure-u-0 pure-u-lg-visible"> | 251 | <div class="pure-u-0 pure-u-lg-visible"> |
245 | {if="isset($value.link_plugin)"} | 252 | {if="isset($value.link_plugin)"} |
246 | · | 253 | · |