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