Sha256: 6dbe4a9eb3b841addc7e9e9ee9f62414fbfde11c051796fb4b56f75ba583074d

Contents?: true

Size: 1.41 KB

Versions: 16

Compression:

Stored size: 1.41 KB

Contents

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

  <%= render 'manifestations/title', manifestation: @checkout.item.manifestation -%>
  <p>
    <strong><%= t('activerecord.attributes.item.item_identifier') -%></strong><br />
    <%= link_to @checkout.item.item_identifier, @checkout.item -%>
  </p>
  <p>
    <strong><%= t('activerecord.attributes.checkout.due_date') -%></strong><br />
    <%= l(@checkout.due_date, format: :only_date) if @checkout.due_date -%>
  </p>
  <%- if can? :update, @checkout -%>
    <p>
      <strong><%= t('checkout.current_user') -%></strong><br />
      <%= link_to @checkout.user_username, @checkout.user.profile if @checkout.user.try(:profile) -%>
    </p>
  <%- end -%>
</div>
</div>

<div id="submenu" class="ui-corner-all ui-widget-content">
  <%= render 'manifestations/book_jacket', manifestation: @checkout.item.manifestation -%>
  <ul>
    <li><%= link_to t('page.edit'), edit_checkout_path(@checkout) -%></li>
    <% if @checkout.user %>
      <li><%= link_to t('page.back'), checkouts_path(user_id: @checkout.user.username) -%></li>
    <% end %>
    <%- if current_user.has_role?('Librarian') -%>
      <li><%= link_to t('page.back_to', model: t('activerecord.models.checkout')), checkouts_path -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
enju_circulation-0.1.2 app/views/checkouts/show.html.erb
enju_circulation-0.1.1 app/views/checkouts/show.html.erb
enju_circulation-0.1.0 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre49 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre48 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre47 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre46 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre45 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre44 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre43 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre42 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre41 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre40 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre39 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre38 app/views/checkouts/show.html.erb
enju_circulation-0.1.0.pre37 app/views/checkouts/show.html.erb