Sha256: 36343943be9643ff9525210a4813791216c83c286e64480fb6e70ae0be8fbbe4

Contents?: true

Size: 1.88 KB

Versions: 43

Compression:

Stored size: 1.88 KB

Contents

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

<%= render 'list' -%>

<%- if @checkouts.size == 0 -%>
  <p><%= t('checkout.no_checkout') -%></p>
<%- end -%>

</div>
</div>

<div id="submenu" class="ui-corner-all">
  <ul>
    <%- user.user_group.user_group_has_checkout_types.each do |available_checkout_type| -%>
      <li>
        <%= available_checkout_type.checkout_type.display_name.localize -%>:
        <%= user.checked_item_count[:"#{available_checkout_type.checkout_type.name}"] -%> / <%= available_checkout_type.checkout_limit -%>
      </li>
    <%- end -%>
  </ul>
  <ul>
    <li><%= link_to t('activerecord.models.reserve'), user_reserves_path(user) -%></li>
    <%- if current_user.has_role?('Librarian') -%>
      <li><%= link_to t('checkout.all_checkout'), checkouts_path -%></li>
    <%- end -%>
    <% if current_user.checkout_icalendar_token? %>
      <li><%= link_to 'iCalendar', checkouts_path(:icalendar_token => user.checkout_icalendar_token, :format => :ics) -%></li>
    <% end %>
  </ul>
  <p>
    <%- if params[:view] == 'overdue' -%>
      <%= link_to (image_tag 'icons/feed.png', :size => '16x16', :alt => 'RSS', :class => 'icon'), user_checkouts_path(user, :format => :rss, :view => 'overdue') -%>
      (<%= link_to 'RSS', user_checkouts_path(user, :format => :rss, :view => 'overdue') -%>)
      (<%= link_to 'CSV', user_checkouts_path(user, :format => :csv, :view => 'overdue', :locale => @locale.to_s) -%>)
    <%- else -%>
      <%= link_to (image_tag 'icons/feed.png', :size => '16x16', :alt => 'RSS', :class => 'icon'), user_checkouts_path(user, :format => :rss) -%>
      (<%= link_to 'RSS', user_checkouts_path(user, :format => :rss) -%>)
      (<%= link_to 'CSV', user_checkouts_path(user, :format => :csv, :locale => @locale.to_s) -%>)
    <%- end -%>
  </p>

</div>

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
enju_message-0.1.11 app/views/checkouts/_index_user.html.erb
enju_message-0.0.25 app/views/checkouts/_index_user.html.erb
enju_message-0.1.9 app/views/checkouts/_index_user.html.erb
enju_message-0.0.24 app/views/checkouts/_index_user.html.erb
enju_message-0.0.23 app/views/checkouts/_index_user.html.erb
enju_message-0.1.7 app/views/checkouts/_index_user.html.erb
enju_message-0.0.22 app/views/checkouts/_index_user.html.erb
enju_message-0.1.6 app/views/checkouts/_index_user.html.erb
enju_message-0.0.21 app/views/checkouts/_index_user.html.erb
enju_message-0.1.5 app/views/checkouts/_index_user.html.erb
enju_message-0.0.20 app/views/checkouts/_index_user.html.erb
enju_message-0.1.4 app/views/checkouts/_index_user.html.erb
enju_message-0.0.19 app/views/checkouts/_index_user.html.erb
enju_message-0.1.1 app/views/checkouts/_index_user.html.erb
enju_message-0.1.0 app/views/checkouts/_index_user.html.erb
enju_message-0.0.18 app/views/checkouts/_index_user.html.erb
enju_message-0.0.17 app/views/checkouts/_index_user.html.erb
enju_message-0.0.16 app/views/checkouts/_index_user.html.erb
enju_message-0.0.15 app/views/checkouts/_index_user.html.erb
enju_circulation-0.0.23 app/views/checkouts/_index_user.html.erb