Files
pathfinder/public/templates/modules/notification.html
Mark Friedrich 5b9f939137 - added persistent map size for non "Chrome" browsers, fixed #585
- added notification to /admin/maps page if there are no maps found
2018-03-30 12:47:55 +02:00

27 lines
1.1 KiB
HTML

<check if="{{ @notification->title }}">
<switch expr="{{ @notification->type }}">
<case value="warning" break="true">
<set notificationTypeClass="alert-warning" />
<set notificationColorClass="txt-color-warning" />
</case>
<case value="info" break="true">
<set notificationTypeClass="alert-info" />
<set notificationColorClass="txt-color-info" />
</case>
<case value="success" break="true">
<set notificationTypeClass="alert-success" />
<set notificationColorClass="txt-color-success" />
</case>
<default>
<set notificationTypeClass="alert-danger" />
<set notificationColorClass="txt-color-danger" />
</default>
</switch>
<div class="alert {{@notificationTypeClass}}">
<span class="txt-color {{@notificationColorClass}}">{{ @notification->title }}</span>
<check if="{{ @notification->message }}">
<small>{{ @notification->message }}</small>
</check>
</div>
</check>