Split alert messages into title and msg, title should be unique
This commit is contained in:
parent
df9b41a843
commit
9fa687081a
3 changed files with 22 additions and 8 deletions
|
|
@ -5,7 +5,8 @@
|
|||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<span class="glyphicon glyphicon-minus-sign" aria-hidden="true"></span>
|
||||
<strong>{{.getMessage()}}</strong>
|
||||
<strong>{{.getTitle()}}</strong>
|
||||
{{#.getMessage()}}{{.getMessage()}}{{/.getMessage()}}
|
||||
</div>
|
||||
{{/.isError()}}
|
||||
{{#.isWarning()}}
|
||||
|
|
@ -14,7 +15,8 @@
|
|||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<span class="glyphicon glyphicon-warning-sign" aria-hidden="true"></span>
|
||||
<strong>{{.getMessage()}}</strong>
|
||||
<strong>{{.getTitle()}}</strong>
|
||||
{{#.getMessage()}}{{.getMessage()}}{{/.getMessage()}}
|
||||
</div>
|
||||
{{/.isWarning()}}
|
||||
{{#.isSuccess()}}
|
||||
|
|
@ -23,7 +25,8 @@
|
|||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<span class="glyphicon glyphicon-ok-circle" aria-hidden="true"></span>
|
||||
<strong>{{.getMessage()}}</strong>
|
||||
<strong>{{.getTitle()}}</strong>
|
||||
{{#.getMessage()}}{{.getMessage()}}{{/.getMessage()}}
|
||||
</div>
|
||||
{{/.isSuccess()}}
|
||||
{{#.isInfo()}}
|
||||
|
|
@ -32,7 +35,8 @@
|
|||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
|
||||
<strong>{{.getMessage()}}</strong>
|
||||
<strong>{{.getTitle()}}</strong>
|
||||
{{#.getMessage()}}{{.getMessage()}}{{/.getMessage()}}
|
||||
</div>
|
||||
{{/.isInfo()}}
|
||||
{{/alerts}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue