Sha256: 169134f78e0ca837af03d590bea7d646e7ba3826e43cee35e18ad4d412833626

Contents?: true

Size: 1.27 KB

Versions: 52

Compression:

Stored size: 1.27 KB

Contents

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

<table class="table table-striped index">
  <tr>
    <th id="position"></th>
    <th><%= t('activerecord.attributes.country.display_name') -%></th>
    <th><%= t('activerecord.attributes.country.alpha_2') -%></th>
    <th><%= t('activerecord.attributes.country.alpha_3') -%></th>
    <th><%= t('activerecord.attributes.country.numeric_3') -%></th>
    <th></th>
  </tr>

<%- @countries.each do |country| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%- if can? :update, country -%>
        <%= move_position(country) -%>
      <%- end -%>
    </td>
    <td><%= link_to country.display_name.localize, country -%></td>
    <td><%= country.alpha_2 -%></td>
    <td><%= country.alpha_3 -%></td>
    <td><%= country.numeric_3 -%></td>
    <td>
      <%- if can? :update, country -%>
        <%= link_to t('page.edit'), edit_country_path(country) -%>
      <%- end -%>
    </td>
  </tr>
<%- end -%>
</table>

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

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

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre52 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre51 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre50 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre49 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre48 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre47 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre46 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre45 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre44 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre43 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre42 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre41 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre40 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre39 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre38 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre37 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre36 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre35 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre34 app/views/countries/index.html.erb
enju_biblio-0.1.0.pre33 app/views/countries/index.html.erb