Merge pull request #1296 from ArthurHoaro/feature/sticky-label

Display sticky label in linklist
This commit is contained in:
ArthurHoaro 2019-05-08 11:00:33 +02:00 committed by GitHub
commit 160d9a7741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 9 deletions

View file

@ -716,11 +716,19 @@ body,
} }
} }
.label {
font-family: Arial, sans-serif;
font-size: .65em;
}
.label-private { .label-private {
border: solid 1px $orange; border: solid 1px $orange;
color: $orange; color: $orange;
font-family: Arial, sans-serif; }
font-size: .65em;
.label-sticky {
border: solid 1px $blue;
color: $blue;
} }
} }

View file

@ -146,13 +146,14 @@
</div> </div>
{/if} {/if}
{if="$is_logged_in"}
<div class="linklist-item-editbuttons"> <div class="linklist-item-editbuttons">
{if="$value.sticky"}
<span class="label label-sticky">{$strSticky}</span>
{/if}
{if="$value.private"} {if="$value.private"}
<span class="label label-private">{$strPrivate}</span> <span class="label label-private">{$strPrivate}</span>
{/if} {/if}
</div> </div>
{/if}
<h2> <h2>
<a href="{$value.real_url}"> <a href="{$value.real_url}">