cirandas.net

ref: master

plugins/admin_notifications/views/shared/show_notification.html.erb


<% if current_user && current_user.person.is_admin? %>
  <% active_notifications = AdminNotificationsPlugin::Notification.active(environment) %>
  <% unless active_notifications.blank? %>
    

<%= _("There are active notifications in this environment!") %> <%= link_to _("Manage all notifications here."), AdminNotificationsPlugin.admin_url %>

<% end %> <% end %> <% target = profile.present? ? profile : environment %> <% @notifications = AdminNotificationsPlugin::Notification.visibles(target, current_user, controller_path).where("id NOT IN (?)", hide_notifications) %>
<% @notifications.each do |notification| %>
notification" data-notification="<%=notification.id%>" notification-display-popup="<%=notification.display_popup?%>">
<%= AdminNotificationsPlugin::NotificationHelper.substitute_variables(notification.message, current_user).html_safe %>
<% if logged_in? %>
<% end %>
<% end %>