Sha256: 91aae9285bb86f2d36da06fbfe3b7dbf5a24bdf747c1283077136de86428c1ba

Contents?: true

Size: 1.11 KB

Versions: 8

Compression:

Stored size: 1.11 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_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

8 entries across 8 versions & 1 rubygems

Version Path
udongo-5.9.0 app/views/backend/redirects/index.html.erb
udongo-5.8.0 app/views/backend/redirects/index.html.erb
udongo-5.7.0 app/views/backend/redirects/index.html.erb
udongo-5.6.0 app/views/backend/redirects/index.html.erb
udongo-5.5.0 app/views/backend/redirects/index.html.erb
udongo-5.4.0 app/views/backend/redirects/index.html.erb
udongo-5.3.1 app/views/backend/redirects/index.html.erb
udongo-5.3.0 app/views/backend/redirects/index.html.erb