Sha256: eb1c9c726468197755e70f9d7e35c8d4a4ca1fcfd6a485e9e873c2ff10aa916e

Contents?: true

Size: 1.31 KB

Versions: 36

Compression:

Stored size: 1.31 KB

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
<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.name') -%></th>
    <th><%= t('activerecord.attributes.country.display_name') -%></th>
    <th>ISO-3166-1</th>
    <th></th>
  </tr>

<%- @countries.each do |country| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%- if policy(country).update? -%>
        <%= move_position(country) -%>
      <%- end -%>
    </td>
    <td><%= country.name -%></td>
    <td><%= link_to country.display_name.localize, country -%></td>
    <td>
      alpha-2: <%= country.alpha_2 -%></br>
      alpha-3: <%= country.alpha_3 -%></br>
      numeric: <%= country.numeric_3 -%>
    </td>
    <td>
      <%- if policy(country).update? -%>
        <%= 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 ui-widget-content">
  <ul>
    <%- if policy(Country).create? -%>
      <li><%= link_to t('page.new', model: t('activerecord.models.country')), new_country_path -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

36 entries across 35 versions & 2 rubygems

Version Path
enju_biblio-0.3.18 app/views/countries/index.html.erb
enju_biblio-0.3.17 app/views/countries/index.html.erb
enju_biblio-0.3.16 app/views/countries/index.html.erb
enju_biblio-0.3.15 app/views/countries/index.html.erb
enju_biblio-0.3.14 app/views/countries/index.html.erb
enju_biblio-0.3.13 app/views/countries/index.html.erb
enju_biblio-0.3.12 app/views/countries/index.html.erb
enju_biblio-0.3.11 app/views/countries/index.html.erb
enju_biblio-0.3.10 app/views/countries/index.html.erb
enju_biblio-0.3.10.rc.3 app/views/countries/index.html.erb
enju_biblio-0.3.10.rc.2 app/views/countries/index.html.erb
enju_biblio-0.3.10.rc.1 app/views/countries/index.html.erb
enju_biblio-0.3.9 app/views/countries/index.html.erb
enju_biblio-0.3.8 app/views/countries/index.html.erb
enju_biblio-0.3.7 app/views/countries/index.html.erb
enju_biblio-0.3.6 app/views/countries/index.html.erb
enju_biblio-0.3.5 app/views/countries/index.html.erb
enju_biblio-0.3.4 app/views/countries/index.html.erb
enju_biblio-0.3.3 app/views/countries/index.html.erb
enju_biblio-0.3.2 app/views/countries/index.html.erb