mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-01 20:48:23 +08:00
Fix dooble flash_alerts load
This commit is contained in:
parent
f8afc92606
commit
d07e04e511
1 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,9 @@
|
||||||
<% content_for :content do %>
|
<% content_for :content do %>
|
||||||
<div class="container <%= yield :container_class %>">
|
<div class="container <%= yield :container_class %>">
|
||||||
<%= render partial: 'shared/flash_alerts',
|
<% if user_signed_in? %>
|
||||||
locals: { flash: flash, notice: notice, alert: alert } %>
|
<%= render partial: 'shared/flash_alerts',
|
||||||
|
locals: { flash: flash, notice: notice, alert: alert } %>
|
||||||
|
<% end %>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue