Skip to content

Commit

Permalink
Keeps private links number … private.
Browse files Browse the repository at this point in the history
Signed-off-by: Thibaud CANALE <thican@thican.net>
  • Loading branch information
thican committed Nov 16, 2024
1 parent 5f54448 commit 987ece6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tpl/default/linklist.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="linkcount pure-u-0 pure-u-lg-visible">
{if="!empty($linkcount)"}
<span class="strong">{$linkcount}</span> {function="t('shaare', 'shaares', $linkcount)"}
{if="$privateLinkcount>0"}
{if="$is_logged_in && $privateLinkcount>0"}
<br><span class="strong">{$privateLinkcount}</span> {function="t('private link', 'private links', $privateLinkcount)"}
{/if}
{/if}
Expand Down Expand Up @@ -58,7 +58,7 @@
<div class="linkcount pure-u-lg-0 center">
{if="!empty($linkcount)"}
<span class="strong">{$linkcount}</span> {function="t('shaare', 'shaares', $linkcount)"}
{if="$privateLinkcount>0"}
{if="$is_logged_in && $privateLinkcount>0"}
&middot; <span class="strong">{$privateLinkcount}</span> {function="t('private link', 'private links', $privateLinkcount)"}
{/if}
{/if}
Expand Down
2 changes: 1 addition & 1 deletion tpl/vintage/page.header.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<div id="linkcount" class="nomobile">
{if="!empty($linkcount)"}{$linkcount} links{/if}<br>
{if="!empty($privateLinkcount)"}{$privateLinkcount} private links{/if}
{if="$is_logged_in && !empty($privateLinkcount)"}{$privateLinkcount} private links{/if}
</div>

<div id="menu">
Expand Down

0 comments on commit 987ece6

Please sign in to comment.