]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Vintage theme: display global messages
authorArthurHoaro <arthur@hoa.ro>
Mon, 9 Nov 2020 11:46:24 +0000 (12:46 +0100)
committerArthurHoaro <arthur@hoa.ro>
Mon, 9 Nov 2020 11:46:24 +0000 (12:46 +0100)
assets/vintage/css/shaarli.css
tpl/vintage/page.header.html

index 5b02ab5b2a573096a4196d6bc6616edf4523e737..33e178afeb07a24d2d8a8c6f327b1f52a2ea556e 100644 (file)
@@ -1122,6 +1122,16 @@ ul.errors {
     float: left;
 }
 
+ul.warnings {
+    color: orange;
+    float: left;
+}
+
+ul.successes {
+    color: green;
+    float: left;
+}
+
 #pluginsadmin {
     width: 80%;
     padding: 20px 0 0 20px;
index 0a33523b375c3f650242a155a68386ee6f4cb5b5..64d7f656e8406b58efb8cc39e287ea6d133144b2 100644 (file)
     </ul>
 {/if}
 
+{if="!empty($global_errors)"}
+  <ul class="errors">
+    {loop="$global_errors"}
+      <li>{$value}</li>
+    {/loop}
+  </ul>
+{/if}
+
+{if="!empty($global_warnings)"}
+  <ul class="warnings">
+    {loop="$global_warnings"}
+      <li>{$value}</li>
+    {/loop}
+  </ul>
+{/if}
+
+{if="!empty($global_successes)"}
+  <ul class="successes">
+    {loop="$global_successes"}
+      <li>{$value}</li>
+    {/loop}
+  </ul>
+{/if}
+
 <div class="clear"></div>