public
Description: This contains various plugins for Feather
Clone URL: git://github.com/eldiablo/feather-plugins.git
Click here to lend your support to: feather-plugins and make a donation at www.pledgie.com !
100644 20 lines (18 sloc) 0.83 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<% throw_content :right do %>
  <h4>View Redirects</h4>
  <p>
   Redirects allow you to setup urls that'll be redirected elsewhere on the blog, so as to maintain compatibility with old links. You can configure them to be temporary (302), or permanent (301) redirects.
  </p>
<% end %>
 
<h1>View Redirects</h1>
 
<table>
  <% @redirects.each do |redirect| %>
  <tr>
    <td>From <%= link_to "#{redirect.from_url} to #{redirect.to_url}", url(:admin_redirect, redirect) %></td>
    <td>(<%= redirect.permanent ? "Permanent" : "Temporary" %>)</td>
    <td <%= link_to "Edit", url(:edit_admin_redirect, redirect) %> | <%= link_to 'Delete', url(:delete_admin_redirect, redirect), {:method => :delete, :onclick => "return confirm('Are you sure?')"} %></td>
  </tr>
  <% end %>
</table>
<br />
<%= link_to "New Redirect", url(:new_admin_redirect) %>