MiraitSystems/enju_trunk

View on GitHub
app/views/series_statements/_index.html.erb

Summary

Maintainability
Test Coverage
<div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.series_statement')) -%></h1>
<div id="content_list">
<%= form_for :series_statements, :url => series_statements_path, :html => {:method => 'get'} do -%>
  <p>
    <%= t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%>
    <%= submit_tag t('page.search') -%>
  </p>
<%- end -%>
<table class="index">
  <tr>
<% if false %>
    <th id="position"></th>
<% end %>
    <th><%= t('activerecord.attributes.series_statement.original_title') -%></th>
    <th style="white-space: nowrap;"><%= t('activerecord.attributes.series_statement.issn') -%></th>
    <th style="white-space: nowrap;"><%= t('activerecord.attributes.series_statement.series_statement_identifier') -%></th>
    <th style="white-space: nowrap;"></th>
    <th style="white-space: nowrap;"></th>
  </tr>

<% @series_statements.each do |series_statement| %>
  <tr class="line<%= cycle("0", "1") -%>">
<% if false %>
    <td>
      <%- if can? :update, series_statement -%>
        <%= move_position(series_statement) -%>
      <%- end -%>
    </td>
<% end %>
    <td><%= link_to series_statement.original_title, series_statement %></td>
    <td style="white-space: nowrap;"><%= series_statement.issn %></td>
    <td style="white-space: nowrap;"><%= series_statement.series_statement_identifier %></td>
    <td style="white-space: nowrap;">
      <%- if can? :create, series_statement %>
        <%= link_to t('page.new', :model => t('activerecord.models.manifestation')), new_series_statement_manifestation_path(series_statement) -%>
      <%- end -%>
    </td>
    <td style="white-space: nowrap;">
      <%= link_to t('page.edit'), edit_series_statement_path(series_statement) if can? :update, series_statement -%>
      <%= link_to t('page.destroy'), series_statement, :confirm => t('page.are_you_sure'), :method => :delete if can? :destroy, series_statement -%>
    </td>
  </tr>
<% end %>
</table>

<%= paginate(@series_statements) -%>

</div>
</div>

<div id="submenu" class="ui-corner-all">
  <ul>
    <%- if can? :create, SeriesStatement %><li><%= link_to t('page.new', :model => t('activerecord.models.series_statement')), new_series_statement_path -%></li><%- end -%>
  </ul>
</div>