]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Display sticky label in linklist 1296/head
authorArthurHoaro <arthur@hoa.ro>
Mon, 22 Apr 2019 09:23:47 +0000 (11:23 +0200)
committerArthurHoaro <arthur@hoa.ro>
Mon, 22 Apr 2019 09:26:37 +0000 (11:26 +0200)
Add sticky label, like private label, in linklist to make it more visible.

assets/default/scss/shaarli.scss
tpl/default/linklist.html

index 691b2b37fdb060e303003e9679ae9e828a67daac..518fecdf3a285d3ffeac9c3cfcc91a8766f34421 100644 (file)
@@ -716,11 +716,19 @@ body,
     }
   }
 
+  .label {
+    font-family: Arial, sans-serif;
+    font-size: .65em;
+  }
+
   .label-private {
     border: solid 1px $orange;
     color: $orange;
-    font-family: Arial, sans-serif;
-    font-size: .65em;
+  }
+
+  .label-sticky {
+    border: solid 1px $blue;
+    color: $blue;
   }
 }
 
index d7005c21cacefce82aed9430e5f4ba206c749818..a43786dee471b2d8f84bc01253d0203f7901ca2e 100644 (file)
               </div>
             {/if}
 
-            {if="$is_logged_in"}
-              <div class="linklist-item-editbuttons">
-                {if="$value.private"}
-                  <span class="label label-private">{$strPrivate}</span>
-                {/if}
-              </div>
-            {/if}
+            <div class="linklist-item-editbuttons">
+              {if="$value.sticky"}
+                <span class="label label-sticky">{$strSticky}</span>
+              {/if}
+              {if="$value.private"}
+                <span class="label label-private">{$strPrivate}</span>
+              {/if}
+            </div>
 
             <h2>
               <a href="{$value.real_url}">