diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-12-16 12:36:59 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-12-16 14:32:56 +0100 |
commit | 9d4736a3e95332198896f97ecc8a83abb0cbe85b (patch) | |
tree | fc2487dbefd09953f21f8d10850c7689c87af224 /tpl/default | |
parent | 877491b4ad0a6a9119e667901cef40cc56116901 (diff) | |
download | Shaarli-9d4736a3e95332198896f97ecc8a83abb0cbe85b.tar.gz Shaarli-9d4736a3e95332198896f97ecc8a83abb0cbe85b.tar.zst Shaarli-9d4736a3e95332198896f97ecc8a83abb0cbe85b.zip |
Add a filter to only display public links
When the key filter is clicked once, it only displays private link. When it is clicked on again, it becomes red and only public links are displayed. Another click and all links are displayed. The current visibility status is shown in the search banner
Fixes #1030
Diffstat (limited to 'tpl/default')
-rw-r--r-- | tpl/default/css/shaarli.css | 5 | ||||
-rw-r--r-- | tpl/default/linklist.paging.html | 4 |
2 files changed, 7 insertions, 2 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..e1726f87 100644 --- a/tpl/default/linklist.paging.html +++ b/tpl/default/linklist.paging.html | |||
@@ -6,8 +6,8 @@ | |||
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={$nextVisibility}" title="{'Filter links by visibility'|t}" |
10 | class={if="$privateonly"}"filter-on"{else}"filter-off"{/if} | 10 | class="{if="$visibility=='private'"}filter-on{elseif="$visibility=='public'"}filter-block{else}filter-off{/if}" |
11 | ><i class="fa fa-key"></i></a> | 11 | ><i class="fa fa-key"></i></a> |
12 | {/if} | 12 | {/if} |
13 | <a href="?untaggedonly" title="{'Filter untagged links'|t}" | 13 | <a href="?untaggedonly" title="{'Filter untagged links'|t}" |