Sha256: af796aaf8843f0b80f28e3c2a241e36e81d96fbda20f392ea443cb0e4b2c8647

Contents?: true

Size: 1.86 KB

Versions: 15

Compression:

Stored size: 1.86 KB

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.shelf')) -%></h1>
<div id="content_list">
<p id="notice"><%= notice %></p>

  <h2 class="resource_title">
    <%= link_to @shelf.library.display_name.localize, @shelf.library -%>
    <%= @shelf.display_name.localize -%>
  </h2>

<% if current_user.try(:has_role?, 'Librarian') %>
  <p>
    <strong><%= t('activerecord.attributes.shelf.name') -%>:</strong>
    <%= @shelf.name %>
  </p>
<% end %>

<p>
  <strong><%= t('activerecord.attributes.shelf.closed') -%>:</strong>
  <%= localized_boolean(@shelf.closed) -%>
</p>

<p>
  <strong><%= t('activerecord.attributes.shelf.note') -%>:</strong>
  <%= @shelf.note -%>
</p>

<p>
  <strong><%= t('activerecord.models.picture_file') -%>:</strong><br />
  <%- @shelf.picture_files.each do |picture_file| -%>
    <%= render 'picture_files/link', picture_file: picture_file %>
  <%- end -%>
</p>

<p>
  <strong><%= t('page.created_at') -%>:</strong>
  <%= l(@shelf.created_at) -%>
</p>

<p>
  <strong><%= t('page.updated_at') -%>:</strong>
  <%= l(@shelf.updated_at) -%>
</p>

</div>
</div>

<div id="submenu" class="ui-corner-all ui-widget-content">
  <ul>
    <% if can? :create, Shelf %>
      <%- if @library -%>
        <li><%= link_to t('page.new', model: t('activerecord.models.shelf')), new_shelf_path(library_id: @library.id) -%></li>
      <%- else -%>
        <li><%= link_to t('page.new', model: t('activerecord.models.shelf')), new_shelf_path -%></li>
      <%- end -%>
    <% end %>
    <% if can? :update, @shelf %>
      <li><%= link_to t('page.edit'), edit_shelf_path(@shelf) -%></li>
      <li><%= link_to t('page.listing', model: t('activerecord.models.picture_file')), picture_files_path(shelf_id: @shelf.id) -%></li>
    <% end %>
    <li>
      <%= back_to_index(flash[:page_info]) -%>
    </li>
  </ul>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
enju_library-0.1.2 app/views/shelves/show.html.erb
enju_library-0.1.1 app/views/shelves/show.html.erb
enju_library-0.1.0 app/views/shelves/show.html.erb
enju_library-0.1.0.pre45 app/views/shelves/show.html.erb
enju_library-0.1.0.pre44 app/views/shelves/show.html.erb
enju_library-0.1.0.pre43 app/views/shelves/show.html.erb
enju_library-0.1.0.pre42 app/views/shelves/show.html.erb
enju_library-0.1.0.pre41 app/views/shelves/show.html.erb
enju_library-0.1.0.pre40 app/views/shelves/show.html.erb
enju_library-0.1.0.pre39 app/views/shelves/show.html.erb
enju_library-0.1.0.pre38 app/views/shelves/show.html.erb
enju_library-0.1.0.pre37 app/views/shelves/show.html.erb
enju_library-0.1.0.pre36 app/views/shelves/show.html.erb
enju_library-0.1.0.pre35 app/views/shelves/show.html.erb
enju_library-0.1.0.pre34 app/views/shelves/show.html.erb