diff options
Diffstat (limited to 'app/views/layouts/_flash.html.erb')
| -rw-r--r-- | app/views/layouts/_flash.html.erb | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/app/views/layouts/_flash.html.erb b/app/views/layouts/_flash.html.erb index a67fc866..b72c377f 100644 --- a/app/views/layouts/_flash.html.erb +++ b/app/views/layouts/_flash.html.erb | |||
| @@ -2,20 +2,21 @@ | |||
| 2 | <div id="flash"> | 2 | <div id="flash"> |
| 3 | <%= flash[:notice] %> | 3 | <%= flash[:notice] %> |
| 4 | <% if flash[:status_path] %> | 4 | <% if flash[:status_path] %> |
| 5 | <%= link_to 'Go to Status', flash[:status_path] %> | 5 | <%= link_to t(".go_to_status"), flash[:status_path] %> |
| 6 | <% end %> | 6 | <% end %> |
| 7 | <% if flash[:stale_locale_path] %> | 7 | <% if flash[:stale_locale_path] %> |
| 8 | The <%= flash[:stale_locale] %> translation may be out of date — | 8 | <%= t(".stale_prefix", :lang => flash[:stale_locale]) %> |
| 9 | <%= link_to 'review it', flash[:stale_locale_path] %> too. | 9 | <%= link_to t(".stale_link"), flash[:stale_locale_path] %><%= t(".stale_suffix") %> |
| 10 | <% end %> | 10 | <% end %> |
| 11 | <% if flash[:locked_node_path] %> | 11 | <% if flash[:locked_node_path] %> |
| 12 | <span class="warning">The page is locked by <%= flash[:locked_by] %> — | 12 | <span class="warning"><%= t(".locked_prefix", :login => flash[:locked_by]) %> |
| 13 | <%= link_to 'unlock it there', flash[:locked_node_path] %> first, | 13 | <%= link_to t(".locked_link"), flash[:locked_node_path] %><%= t(".locked_suffix") %> |
| 14 | then attach from this asset's page.</span> | 14 | </span> |
| 15 | <% end %> | 15 | <% end %> |
| 16 | <% if flash[:headline_kept_path] %> | 16 | <% if flash[:headline_kept_path] %> |
| 17 | <span class="warning">The page's existing headline was kept — | 17 | <span class="warning"><%= t(".headline_prefix") %> |
| 18 | <%= link_to 'change it there', flash[:headline_kept_path] %> if needed.</span> | 18 | <%= link_to t(".headline_link"), flash[:headline_kept_path] %><%= t(".headline_suffix") %> |
| 19 | </span> | ||
| 19 | <% end %> | 20 | <% end %> |
| 20 | <% if flash[:error] %> | 21 | <% if flash[:error] %> |
| 21 | <span id="flash_error"><%= flash[:error] %></span> | 22 | <span id="flash_error"><%= flash[:error] %></span> |
