blob: a67fc866fc1f452d6c3cc4efb706d1446cec79d4 (
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
|
<% if flash.any? %>
<div id="flash">
<%= flash[:notice] %>
<% if flash[:status_path] %>
<%= link_to 'Go to Status', flash[:status_path] %>
<% end %>
<% if flash[:stale_locale_path] %>
The <%= flash[:stale_locale] %> translation may be out of date —
<%= link_to 'review it', flash[:stale_locale_path] %> too.
<% end %>
<% if flash[:locked_node_path] %>
<span class="warning">The page is locked by <%= flash[:locked_by] %> —
<%= link_to 'unlock it there', flash[:locked_node_path] %> first,
then attach from this asset's page.</span>
<% end %>
<% if flash[:headline_kept_path] %>
<span class="warning">The page's existing headline was kept —
<%= link_to 'change it there', flash[:headline_kept_path] %> if needed.</span>
<% end %>
<% if flash[:error] %>
<span id="flash_error"><%= flash[:error] %></span>
<% end %>
</div>
<% end %>
|