Sha256: a37254f141079642508e11e310d3ce950d3371136566cba1364a226d0d6cec14

Contents?: true

Size: 1.83 KB

Versions: 34

Compression:

Stored size: 1.83 KB

Contents

<div id="content_detail" class="ui-corner-all">
<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">
  <ul>
    <% if can? :create, Shelf %>
      <%- if @library -%>
        <li><%= link_to t('page.new', :model => t('activerecord.models.shelf')), new_library_shelf_path(@library) -%></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')), shelf_picture_files_path(@shelf) -%></li>
    <% end %>
    <li>
      <%= back_to_index(flash[:page_info]) -%>
    </li>
  </ul>
</div>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
enju_library-0.1.0.pre32 app/views/shelves/show.html.erb
enju_library-0.1.0.pre31 app/views/shelves/show.html.erb
enju_library-0.1.0.pre30 app/views/shelves/show.html.erb
enju_library-0.1.0.pre29 app/views/shelves/show.html.erb
enju_library-0.1.0.pre28 app/views/shelves/show.html.erb
enju_library-0.1.0.pre27 app/views/shelves/show.html.erb
enju_library-0.1.0.pre26 app/views/shelves/show.html.erb
enju_library-0.1.0.pre25 app/views/shelves/show.html.erb
enju_library-0.1.0.pre24 app/views/shelves/show.html.erb
enju_library-0.1.0.pre23 app/views/shelves/show.html.erb
enju_library-0.1.0.pre22 app/views/shelves/show.html.erb
enju_library-0.1.0.pre21 app/views/shelves/show.html.erb
enju_library-0.1.0.pre20 app/views/shelves/show.html.erb
enju_library-0.1.0.pre19 app/views/shelves/show.html.erb
enju_library-0.1.0.pre18 app/views/shelves/show.html.erb
enju_library-0.1.0.pre17 app/views/shelves/show.html.erb
enju_library-0.1.0.pre16 app/views/shelves/show.html.erb
enju_library-0.1.0.pre15 app/views/shelves/show.html.erb
enju_library-0.1.0.pre14 app/views/shelves/show.html.erb
enju_library-0.1.0.pre13 app/views/shelves/show.html.erb