% @page_title = @toolbar_title = "List Redirects" %> <% content_for(:html_head) do %> <% javascript_tag do %> jQuery(function($){ $('table.data tbody tr').hover(function(){ $(this).addClass('hover') }, function(){ $(this).removeClass('hover') }).click(function(){ var match = this.id.match(/(.*)_(\d+)/) var type = match[1]; var id = match[2]; $('table.data tbody tr').removeClass('selected'); $(this).addClass('selected'); $('#edit_button').removeClass('disabled').attr('href', '/cms/redirects/'+id+'/edit'); $('#delete_button').removeClass('disabled').attr('href', '/cms/redirects/'+id) }) }) <% end %> <% end %> <% content_for :functions do %> <%= link_to(span_tag(" Add "), new_cms_redirect_path, :class => "button") %> <%= link_to(span_tag(" Edit "), '#', :id => 'edit_button', :class => "button disabled") %> <%= link_to span_tag(" Delete"), "#", :id => "delete_button", :class => "button disabled http_delete confirm_with_title", :title => "Are you sure you want to delete this redirect?" %> <% end %>
From |
To |
||
---|---|---|---|
<%=h redirect.from_path %> |
<%=h redirect.to_path %> | ||