MiraitSystems/enju_trunk

View on GitHub
app/views/manifestation_relationships/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.manifestation_relationship')) -%></h1>
<div id="content_list">

<table class="index">
  <tr>
    <th><%= t('activerecord.attributes.manifestation_relationship.parent') -%></th>
    <th><%= t('activerecord.attributes.manifestation_relationship.child') -%></th>
    <th><%= t('activerecord.attributes.manifestation_relationship.manifestation_relationship_type_id') -%></th>
    <th></th>
  </tr>

<% @manifestation_relationships.each do |manifestation_relationship| %>
  <tr class="line<%= cycle("0", "1") %>">
    <td><%= link_to manifestation_relationship.parent.original_title, manifestation_relationship.parent %></td>
    <td><%= link_to manifestation_relationship.child.original_title, manifestation_relationship.child %></td>
    <td><%= manifestation_relationship.manifestation_relationship_type.display_name.localize %></td>
    <td>
      <%= link_to t('page.show'), manifestation_relationship %>
      <%= link_to t('page.edit'), edit_manifestation_relationship_path(manifestation_relationship) %>
      <%= link_to t('page.destroy'), manifestation_relationship, :confirm => t('page.are_you_sure'), :method => :delete %>
    </td>
  </tr>
<% end %>
</table>

<br />

</div>
</div>

<div id="submenu" class="ui-corner-all">
  <ul>
    <li><%= link_to t('page.new', :model => t('activerecord.models.manifestation_relationship')), new_manifestation_relationship_path -%></li>
  </ul>
</div>