Sha256: bd2c5fb1b8994826d7e145711156e223c422b1d59d5976906cd1e6aa2122bbc1

Contents?: true

Size: 1.82 KB

Versions: 7

Compression:

Stored size: 1.82 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 %>
<%= link_to(span_tag("&nbsp;Add&nbsp;"), new_cms_redirect_path, :class => "button") %>
<%= link_to(span_tag("&nbsp;Edit&nbsp;"), '#', :id => 'edit_button', :class => "button disabled") %>
<%= link_to span_tag("<span class=\"delete_img\">&nbsp;</span>Delete"), "#", :id => "delete_button", :class => "button disabled http_delete confirm_with_title", :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

7 entries across 7 versions & 2 rubygems

Version Path
browsercms-3.1.5 app/views/cms/redirects/index.html.erb
browsercms-3.1.4 app/views/cms/redirects/index.html.erb
browsercms-3.1.3 app/views/cms/redirects/index.html.erb
drujensen-browsercms-3.2.0 app/views/cms/redirects/index.html.erb
browsercms-3.1.2 app/views/cms/redirects/index.html.erb
browsercms-3.1.1 app/views/cms/redirects/index.html.erb
browsercms-3.1.0 app/views/cms/redirects/index.html.erb