Sha256: 0d2c41b71e76dc72c7d2a2ef7bf354b8f90ed0dc24b47303b65a768dcb7f91e6

Contents?: true

Size: 1.36 KB

Versions: 5

Compression:

Stored size: 1.36 KB

Contents

<%= render 'backend/breadcrumbs' %>

<%= render 'backend/redirects/filter' %>

<p class="text-xs-right">
  <%= link_to icon(:plus, t('b.add')), new_backend_redirect_path, class: 'btn btn-primary btn-sm' %>
</p>

<% if @redirects.any? %>
  <table class="table table-striped table-hover">
    <thead class="thead-inverse">
      <tr>
        <th><%= t 'b.source' %></th>
        <th><%= t 'b.destination' %></th>
        <th><%= t 'b.status_code' %></th>
        <th><%= t 'b.enabled?' %></th>
        <th><%= t 'b.used' %></th>
        <th>&nbsp;</th>
      </tr>
    </thead>

    <tbody>
      <% @redirects.each do |r| %>
        <tr>
          <td><%= r.source_uri %></td>
          <td><%= r.destination_uri %></td>
          <td><%= r.status_code %></td>
          <td><%= t r.enabled?.to_s %></td>
          <td><%= r.times_used.to_i %></td>
          <td class="text-xs-right">
            <%= link_to icon(:pencil_square_o), edit_backend_redirect_path(r) %>
            <%= link_to icon(:trash), backend_redirect_path(r), method: 'delete', data: { confirm: t('b.msg.confirm') } %>
          </td>
        </tr>
      <% end %>
    </tbody>

    <% if will_paginate %>
      <tfoot>
        <tr>
          <td colspan="6">
            <%= will_paginate %>
          </td>
        </tr>
      </tfoot>
    <% end  %>
  </table>
<% else %>
  <p><%= t 'b.msg.no_items' %></p>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
udongo-1.0.3 app/views/backend/redirects/index.html.erb
udongo-1.0.2 app/views/backend/redirects/index.html.erb
udongo-1.0.1 app/views/backend/redirects/index.html.erb
udongo-1.0.0 app/views/backend/redirects/index.html.erb
udongo-0.1.0 app/views/backend/redirects/index.html.erb