MiraitSystems/enju_trunk

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

<table class="index">
  <tr>
    <th>Id</th>
    <th><%= t('activerecord.attributes.agent_import_file.agent_import_file_name') -%></th>
    <th><%= t('activerecord.attributes.agent_import_file.imported_at') -%></th>
    <th><%= t('activerecord.models.user') -%></th>
    <th><%= t('activerecord.attributes.agent_import_file.state') -%></th>
    <th></th>
  </tr>

<%- @agent_import_files.each do |agent_import_file| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td><%= link_to agent_import_file.id, agent_import_file -%></td>
    <td><%= link_to agent_import_file.agent_import_file_name, agent_import_file -%></td>
    <td><%= l(agent_import_file.imported_at) if agent_import_file.imported_at -%></td>
    <td><%= link_to agent_import_file.user.username, agent_import_file.user if agent_import_file.user -%></td>
    <td>
        <%= t("state.#{agent_import_file.state}") if agent_import_file -%></td>
    <td>
      <%= link_to t('page.show'), agent_import_file -%>
      <%= link_to t('page.destroy'), agent_import_file, :confirm => t('page.are_you_sure'), :method => :delete -%>
    </td>
  </tr>
<%- end -%>
</table>

<%= paginate(@agent_import_files) -%>
</div>
</div>

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