Skip to content

Commit

Permalink
Vintage theme: display global messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHoaro committed Nov 9, 2020
1 parent 1e49a65 commit 336f15e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
10 changes: 10 additions & 0 deletions assets/vintage/css/shaarli.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
24 changes: 24 additions & 0 deletions tpl/vintage/page.header.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,30 @@
</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>


0 comments on commit 336f15e

Please sign in to comment.