diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-11-09 12:46:24 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-11-09 12:46:24 +0100 |
commit | 336f15e8baeaba0c1605985cdd7f05980cf80696 (patch) | |
tree | b3bcb424128df2b57826e11d11d7983ef989415c | |
parent | 1e49a65a2a930390cf00114cc30d8516626331c2 (diff) | |
download | Shaarli-336f15e8baeaba0c1605985cdd7f05980cf80696.tar.gz Shaarli-336f15e8baeaba0c1605985cdd7f05980cf80696.tar.zst Shaarli-336f15e8baeaba0c1605985cdd7f05980cf80696.zip |
Vintage theme: display global messages
-rw-r--r-- | assets/vintage/css/shaarli.css | 10 | ||||
-rw-r--r-- | tpl/vintage/page.header.html | 24 |
2 files changed, 34 insertions, 0 deletions
diff --git a/assets/vintage/css/shaarli.css b/assets/vintage/css/shaarli.css index 5b02ab5b..33e178af 100644 --- a/assets/vintage/css/shaarli.css +++ b/assets/vintage/css/shaarli.css | |||
@@ -1122,6 +1122,16 @@ ul.errors { | |||
1122 | float: left; | 1122 | float: left; |
1123 | } | 1123 | } |
1124 | 1124 | ||
1125 | ul.warnings { | ||
1126 | color: orange; | ||
1127 | float: left; | ||
1128 | } | ||
1129 | |||
1130 | ul.successes { | ||
1131 | color: green; | ||
1132 | float: left; | ||
1133 | } | ||
1134 | |||
1125 | #pluginsadmin { | 1135 | #pluginsadmin { |
1126 | width: 80%; | 1136 | width: 80%; |
1127 | padding: 20px 0 0 20px; | 1137 | padding: 20px 0 0 20px; |
diff --git a/tpl/vintage/page.header.html b/tpl/vintage/page.header.html index 0a33523b..64d7f656 100644 --- a/tpl/vintage/page.header.html +++ b/tpl/vintage/page.header.html | |||
@@ -54,6 +54,30 @@ | |||
54 | </ul> | 54 | </ul> |
55 | {/if} | 55 | {/if} |
56 | 56 | ||
57 | {if="!empty($global_errors)"} | ||
58 | <ul class="errors"> | ||
59 | {loop="$global_errors"} | ||
60 | <li>{$value}</li> | ||
61 | {/loop} | ||
62 | </ul> | ||
63 | {/if} | ||
64 | |||
65 | {if="!empty($global_warnings)"} | ||
66 | <ul class="warnings"> | ||
67 | {loop="$global_warnings"} | ||
68 | <li>{$value}</li> | ||
69 | {/loop} | ||
70 | </ul> | ||
71 | {/if} | ||
72 | |||
73 | {if="!empty($global_successes)"} | ||
74 | <ul class="successes"> | ||
75 | {loop="$global_successes"} | ||
76 | <li>{$value}</li> | ||
77 | {/loop} | ||
78 | </ul> | ||
79 | {/if} | ||
80 | |||
57 | <div class="clear"></div> | 81 | <div class="clear"></div> |
58 | 82 | ||
59 | 83 | ||