silverstripe-webpack/app/templates/Site/Objects/NotificationsList.ss

33 lines
1.0 KiB
Scheme
Raw Normal View History

<% if $ShowNotifications && $NotificationsToday %>
2020-06-15 20:48:26 +02:00
<div class="notifications-list">
<% loop $NotificationsToday %>
<div class="alert alert-warning">
2020-06-15 20:48:26 +02:00
<div class="container">
2020-05-24 09:04:07 +02:00
<b class="btn btn-danger btn-close" data-dismiss="alert" aria-label="Close">
<i class="fas fa-times"></i>
</b>
2020-06-15 20:48:26 +02:00
2020-05-24 09:04:07 +02:00
<% if $Title %>
2020-06-15 20:48:26 +02:00
<h2>$Title</h2>
<% end_if %>
<div class="typography">
$Content
</div>
<% if $TargetLink %>
<% with $TargetLink %>
<a
class="alert-link" href="$LinkURL"
<% if $OpenInNewWindow %> target="_blank"<% end_if %>
>
$Title
</a>
<% end_with %>
2020-05-24 09:04:07 +02:00
<% end_if %>
</div>
</div>
<% end_loop %>
2020-05-24 09:04:07 +02:00
</div>
<% end_if %>