Clean notifications partial from layouts

This commit is contained in:
aignatov-bio 2020-02-13 09:52:45 +01:00
parent 0381fef05b
commit bdf4394d5f
3 changed files with 1 additions and 9 deletions

View file

@ -57,10 +57,8 @@
<%= render partial: "/system_notifications/system_notification_modal", locals: { notification: nil} %>
<% end %>
<% unless user_signed_in? %>
<%= render partial: 'shared/flash_alerts',
<%= render partial: 'shared/flash_alerts',
locals: { flash: flash, notice: notice, alert: alert } %>
<% end %>
<%= render "shared/left_menu_bar" if user_signed_in? %>

View file

@ -1,7 +1,5 @@
<% content_for :content do %>
<div class="container-fluid" id="wrapper">
<%= render partial: 'shared/flash_alerts',
locals: { flash: flash, notice: notice, alert: alert } %>
<div id="sidebar-wrapper" class="<%= yield :sidebar_wrapper_class %>">
<%= yield :sidebar %>
<div id="sidebar-arrow"

View file

@ -1,9 +1,5 @@
<% content_for :content do %>
<div class="container <%= yield :container_class %>">
<% if user_signed_in? %>
<%= render partial: 'shared/flash_alerts',
locals: { flash: flash, notice: notice, alert: alert } %>
<% end %>
<%= yield %>
</div>
<% end %>