Sha256: 0829cd0a18fca6841cc8d9ed4fd3075070e06981b94eefd72bd64c7b15ec596e

Contents?: true

Size: 1.97 KB

Versions: 2

Compression:

Stored size: 1.97 KB

Contents

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

<table class="index">
  <tr>
    <th id="position"></th>
    <th><%= t('activerecord.models.patron') -%></th>
    <th><%= t('page.created_at') -%></th>
    <th><%= t('page.updated_at') -%></th>
    <th></th>
  </tr>

<%- @realizes.each do |realize| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%- if can? :destroy, realize -%>
        <%= realize.first? ? image_tag('icons/stop.png', :size => '16x16') : link_to(image_tag('icons/arrow_up.png', :size => '16x16', :alt => t('page.asc')), {:action => 'update', :move => 'higher', :id => realize.id, :expression_id => expression.id}, :method => :put) -%>
        <%= realize.last? ? image_tag('icons/stop.png', :size => '16x16') : link_to(image_tag('icons/arrow_down.png', :size => '16x16', :alt => t('page.desc')), {:action => 'update', :move => 'lower', :id => realize.id, :expression_id => expression.id}, :method => :put) -%>
      <%- end -%>
    </td>
    <td><%= link_to create.patron.try(:full_name), create.patron -%></td>
    <td><%= l(create.created_at) -%></td>
    <td><%= l(create.updated_at) -%></td>
    <td>
      <%- if can? :destroy, realize -%>
        <%= link_to t('page.destroy'), expression_realize_path(expression, realize), :confirm => t('page.are_you_sure'), :method => :delete -%>
      <%- end -%>
    </td>
  </tr>
<%- end -%>
</table>

<%= will_paginate(@realizes) -%>

</div>
</div>

<div id="submenu" class="ui-corner-all">
  <ul>
    <li><%= link_to t('page.listing', :model => t('activerecord.models.patron')), expression_patrons_path(expression) -%></li>
    <%- if can? :create, Realize -%>
      <li><%= link_to t('page.new', :model => t('activerecord.models.realize')), new_expression_realize_path(expression) -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_biblio-0.0.2 app/views/realizes/_index_expression.html.erb
enju_biblio-0.0.1 app/views/realizes/_index_expression.html.erb