Sha256: c113ad0d9ed65eeb0611b1aaadcab16d2bbd1e58e41a51279919d9611996d075
Contents?: true
Size: 1.57 KB
Versions: 17
Compression:
Stored size: 1.57 KB
Contents
<% @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 %> <%= add_button new_redirect_path %> <%= edit_button %> <%= delete_button :title => "Are you sure you want to delete this Redirect?" %> <% end -%> <div class="roundedcorners"> <table class="data"> <thead> <tr> <th class="first" colspan="2" style="width: 48%;"><div class="dividers">From</div></th> <th class="last" colspan="2"><div class="dividers">To</div></th> </tr> </thead> <% @redirects.each do |redirect| %> <tr id="redirect_<%= redirect.id %>"> <td class="first"></td> <td><div class="dividers"><%=h redirect.from_path %></div></td> <td><%=h redirect.to_path %></td> <td class="last"></td> </tr> <% end %> <tr> <td colspan="4" class="buffer"></td> </tr> </table> <div class="tl"></div> <div class="tr"></div> <div class="bl"></div> <div class="br"></div> </div>
Version data entries
17 entries across 17 versions & 1 rubygems