blob: b72c377f200ba05a51a65a99d9c0946794d84ed3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<% if flash.any? %>
<div id="flash">
<%= flash[:notice] %>
<% if flash[:status_path] %>
<%= link_to t(".go_to_status"), flash[:status_path] %>
<% end %>
<% if flash[:stale_locale_path] %>
<%= t(".stale_prefix", :lang => flash[:stale_locale]) %>
<%= link_to t(".stale_link"), flash[:stale_locale_path] %><%= t(".stale_suffix") %>
<% end %>
<% if flash[:locked_node_path] %>
<span class="warning"><%= t(".locked_prefix", :login => flash[:locked_by]) %>
<%= link_to t(".locked_link"), flash[:locked_node_path] %><%= t(".locked_suffix") %>
</span>
<% end %>
<% if flash[:headline_kept_path] %>
<span class="warning"><%= t(".headline_prefix") %>
<%= link_to t(".headline_link"), flash[:headline_kept_path] %><%= t(".headline_suffix") %>
</span>
<% end %>
<% if flash[:error] %>
<span id="flash_error"><%= flash[:error] %></span>
<% end %>
</div>
<% end %>
|