Sha256: c2937cfd1a5167704d2ace43646ad82d9e9eab2059e035093db09b2d5554f91d

Contents?: true

Size: 1.09 KB

Versions: 43

Compression:

Stored size: 1.09 KB

Contents

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

<p class="text-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-right">
            <%= link_to_edit [:backend, r] %>
            <%= link_to_delete [:backend, r] %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>

  <%= udongo_paginate @redirects %>
<% else %>
  <p><%= t 'b.msg.no_items' %></p>
<% end %>

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
udongo-7.7.2 app/views/backend/redirects/index.html.erb
udongo-7.7.1 app/views/backend/redirects/index.html.erb
udongo-7.7.0 app/views/backend/redirects/index.html.erb
udongo-7.6.2 app/views/backend/redirects/index.html.erb
udongo-7.6.1 app/views/backend/redirects/index.html.erb
udongo-7.6.0 app/views/backend/redirects/index.html.erb
udongo-7.5.1 app/views/backend/redirects/index.html.erb
udongo-7.5.0 app/views/backend/redirects/index.html.erb
udongo-7.4.2 app/views/backend/redirects/index.html.erb
udongo-7.4.1 app/views/backend/redirects/index.html.erb
udongo-7.4.0 app/views/backend/redirects/index.html.erb
udongo-7.3.5 app/views/backend/redirects/index.html.erb
udongo-7.3.4 app/views/backend/redirects/index.html.erb
udongo-7.3.3 app/views/backend/redirects/index.html.erb
udongo-7.3.2 app/views/backend/redirects/index.html.erb
udongo-7.3.1 app/views/backend/redirects/index.html.erb
udongo-7.2.1 app/views/backend/redirects/index.html.erb
udongo-7.2.0 app/views/backend/redirects/index.html.erb
udongo-7.1.3 app/views/backend/redirects/index.html.erb
udongo-7.1.2 app/views/backend/redirects/index.html.erb