Sha256: 3eb3bee87c131ebd710c0ffaf4876caa6964de02674995d655797a02258662d5
Contents?: true
Size: 1.8 KB
Versions: 2
Compression:
Stored size: 1.8 KB
Contents
<% unless params[:mode] == 'add' %> <% if manifestation.is_reservable_by?(current_user) %> <%- reserve = manifestation.is_reserved_by?(current_user) -%> <%- if reserve -%> <%= link_to t('reserve.show'), reserve -%> <%- else -%> <%= link_to t('activerecord.models.reserve'), new_reserve_path(:manifestation_id => manifestation.id) if can? :create, Reserve -%> <%- end -%> <% end %> <br /> <% end %> <% cache([current_user_role_name, @locale, manifestation]) do %> <%- if can? :update, manifestation -%> <% unless params[:mode] == 'add' %> <%= link_to image_tag('icons/book_edit.png', :size => '16x16', :alt => t('page.edit')), edit_manifestation_path(manifestation) -%> <% else %> <% case %> <% when @parent %> <%= link_to t('page.add'), new_manifestation_manifestation_relationship_path(@parent, :child_id => manifestation.id) unless @parent.derived_manifestations.include?(manifestation) or @parent == manifestation -%> <% when @item %> <%= link_to t('page.change'), edit_exemplify_path(@item.exemplify, :manifestation_id => manifestation.id) unless @item.manifestation == manifestation -%> <% else %> <%= link_to image_tag('icons/arrow_divide.png', :size => '16x16', :alt => t('manifestation.add_derivation')), new_manifestation_path(:parent_id => manifestation.id) -%> <% end %> <%- end -%> <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_flower-0.1.0.pre15 | app/views/manifestations/_show_reservation.html.erb |
enju_flower-0.1.0.pre14 | app/views/manifestations/_show_reservation.html.erb |