Sha256: 1e1bf22e6a715a8452c152a9305446ba73bae2159417e909f8ba2da646fef23d

Contents?: true

Size: 811 Bytes

Versions: 13

Compression:

Stored size: 811 Bytes

Contents

<h1>Listing translations</h1>

<%= render "search_form" %>

<table class="table table-hover">
  <thead>
    <tr>
      <th>Locale</th>
      <th>Key</th>
      <th>Value</th>
      <th>Modified at</th>
      <th>Action</th>
    </tr>
  </thead>

  <tbody>
    <% @translations.each do |translation| %>
      <% tr_color = translation.value.nil? ? "danger" : "" %>
      <tr class="<%= tr_color %>">
        <td><%= translation.locale %></td>
        <td><%= translation.key %></td>
        <td><%= translation.value.to_s.truncate(50) %></td>
        <td class="date"><%= translation.updated_at.strftime("%T, %d %b %Y") %></td>
        <td><%= link_to 'Edit', find_by_key_path(key: "#{translation.locale}.#{translation.key}") %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= paginate @translations %>

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
i18nline-0.0.15.alpha app/views/i18nline/translations/index.html.erb
i18nline-0.0.14.alpha app/views/i18nline/translations/index.html.erb
i18nline-0.0.12.alpha app/views/i18nline/translations/index.html.erb
i18nline-0.0.11.alpha app/views/i18nline/translations/index.html.erb
i18nline-0.0.10.alpha app/views/i18nline/translations/index.html.erb
i18nline-0.0.8.alpha app/views/i18nline/translations/index.html.erb
i18nline-0.0.7.alpha app/views/i18nline/translations/index.html.erb
i18nline-0.0.6.alpha app/views/i18nline/translations/index.html.erb
i18nline-rails-0.0.5.alpha app/views/i18nline/translations/index.html.erb
i18nline-0.0.5.alpha app/views/i18nline/translations/index.html.erb
i18nline-0.0.4.alpha app/views/i18nline/translations/index.html.erb
i18nline-0.0.3.alpha app/views/i18nline/translations/index.html.erb
i18nline-0.0.2.alpha app/views/i18nline/translations/index.html.erb