wikijs-fork/server/views/common/alerts.pug

15 lines
398 B
Plaintext
Raw Normal View History

2016-08-24 01:09:09 +00:00
#alerts
2017-02-10 02:35:37 +00:00
ul
template(v-for='aItem in children', track-by='_uid')
li(v-bind:class='aItem.class')
button(v-on:click='acknowledge(aItem._uid)')
strong {{ aItem.title }}
span {{ aItem.message }}
2016-08-24 01:09:09 +00:00
if appflash.length > 0
2017-02-10 02:35:37 +00:00
script(type='text/javascript').
var alertsData = !{JSON.stringify(appflash)};
2016-08-24 01:09:09 +00:00
else
2017-02-10 02:35:37 +00:00
script(type='text/javascript').
var alertsData = [];