diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-02-02 19:22:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-02 19:22:37 +0100 |
commit | bc3ce7ec2a652eec1441774958050cf83105560a (patch) | |
tree | add0bcb98c4051bde67badf202a3f5bcaeb850a3 /tpl/default | |
parent | 17b4baedec3902a1549451ede36f914000019797 (diff) | |
parent | d2f6d909e529898c43b32defb890ec8e2d6b72f5 (diff) | |
download | Shaarli-bc3ce7ec2a652eec1441774958050cf83105560a.tar.gz Shaarli-bc3ce7ec2a652eec1441774958050cf83105560a.tar.zst Shaarli-bc3ce7ec2a652eec1441774958050cf83105560a.zip |
Merge pull request #1038 from ArthurHoaro/feature/public-only-filter
Add a filter to only display public links
Diffstat (limited to 'tpl/default')
-rw-r--r-- | tpl/default/css/shaarli.css | 5 | ||||
-rw-r--r-- | tpl/default/linklist.paging.html | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 14439402..1e07a88e 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css | |||
@@ -453,6 +453,11 @@ body, .pure-g [class*="pure-u"] { | |||
453 | background: #1b926c; | 453 | background: #1b926c; |
454 | } | 454 | } |
455 | 455 | ||
456 | .linklist-filters .filter-block { | ||
457 | color: #f5f5f5; | ||
458 | background: #ac2925; | ||
459 | } | ||
460 | |||
456 | .linklist-pages { | 461 | .linklist-pages { |
457 | margin: 5px 0; | 462 | margin: 5px 0; |
458 | color: #252525; | 463 | color: #252525; |
diff --git a/tpl/default/linklist.paging.html b/tpl/default/linklist.paging.html index 347b3d13..72bdd931 100644 --- a/tpl/default/linklist.paging.html +++ b/tpl/default/linklist.paging.html | |||
@@ -6,9 +6,12 @@ | |||
6 | {'Filters'|t} | 6 | {'Filters'|t} |
7 | </span> | 7 | </span> |
8 | {if="isLoggedIn()"} | 8 | {if="isLoggedIn()"} |
9 | <a href="?privateonly" title="{'Filter private links'|t}" | 9 | <a href="?visibility=private" title="{'Only display private links'|t}" |
10 | class={if="$privateonly"}"filter-on"{else}"filter-off"{/if} | 10 | class="{if="$visibility==='private'"}filter-on{else}filter-off{/if}" |
11 | ><i class="fa fa-key"></i></a> | 11 | ><i class="fa fa-user-secret"></i></a> |
12 | <a href="?visibility=public" title="{'Only display public links'|t}" | ||
13 | class="{if="$visibility==='public'"}filter-on{else}filter-off{/if}" | ||
14 | ><i class="fa fa-globe"></i></a> | ||
12 | {/if} | 15 | {/if} |
13 | <a href="?untaggedonly" title="{'Filter untagged links'|t}" | 16 | <a href="?untaggedonly" title="{'Filter untagged links'|t}" |
14 | class={if="$untaggedonly"}"filter-on"{else}"filter-off"{/if} | 17 | class={if="$untaggedonly"}"filter-on"{else}"filter-off"{/if} |