Files
pathfinder/public/templates/modules/notification.html
Mark Friedrich 9a3f45fdc7 - New map right "share map" added, closed #927
- Upgraded "[_Select2_](https://select2.org/)" js lib `v4.0.6-rc.1` → `v4.0.13`
- Fixed some issues where changed map settings (e.g. "share") do not get updated/stored, closed #889, closed #925
- Moved ajax endpoints for map create/update/delete into `/Api/Rest/` dir
- Minor UI improvements for "manual dialog" (fixed pixelated text)
2020-03-15 19:38:44 +01:00

27 lines
1.0 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->text }}">
<small>{{ @notification->text }}</small>
</check>
</div>
</check>