Sha256: 782eac5f1fb74a2eb6958233b6150d1b23129555ee463c88ce0cb38d968a5114

Contents?: true

Size: 1.06 KB

Versions: 16

Compression:

Stored size: 1.06 KB

Contents

<% unless flash.blank? %>
  <div class="container flash-message">
    <div class="row">
      <div class="span12">
        <% [[:notice, 'alert-success'],[:error, 'alert-error'],[:alert, 'alert-info']].each do |type, flash_dom_class| %>
          <% if flash[type] %>
            <div class="alert <%= flash_dom_class %> ui-corner-all <%= type.to_s %>">
              <a class="close" data-dismiss="alert" href="#">×</a>
              <%= Array(flash[type]).join("<br/>").html_safe %>
            </div>
            <% flash.delete(type) %>
          <% end %>
        <% end %>
        <% if flash[:curation_concern_pid] %>
          <% curation_concern = ActiveFedora::Base.find(flash[:curation_concern_pid], cast: true) %>
          <div class="alert alert-success ui-corner-all notice">
            <a class="close" data-dismiss="alert" href="#">×</a>
            <%= link_to(content_tag('h4', %(Created "#{curation_concern}")), [:curation_concern, curation_concern], class: "created_curation_concern") %>
          </div>
        <% end %>
      </div>
    </div>
  </div>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
curate-0.6.6 app/views/shared/_flash_message.html.erb
curate-0.6.5 app/views/shared/_flash_message.html.erb
curate-0.6.4 app/views/shared/_flash_message.html.erb
curate-0.6.3 app/views/shared/_flash_message.html.erb
curate-0.6.1 app/views/shared/_flash_message.html.erb
curate-0.6.0 app/views/shared/_flash_message.html.erb
curate-0.5.6 app/views/shared/_flash_message.html.erb
curate-0.5.5 app/views/shared/_flash_message.html.erb
curate-0.5.4 app/views/shared/_flash_message.html.erb
curate-0.5.2 app/views/shared/_flash_message.html.erb
curate-0.5.1 app/views/shared/_flash_message.html.erb
curate-0.5.0 app/views/shared/_flash_message.html.erb
curate-0.4.2 app/views/shared/_flash_message.html.erb
curate-0.3.2 app/views/shared/_flash_message.html.erb
curate-0.3.1 app/views/shared/_flash_message.html.erb
curate-0.2.0 app/views/shared/_flash_message.html.erb