Sha256: 7c680ee9be10fb3f0ce28f14ae7f6c7c7c5700e548935cd499ac3c4d0dce2fbd

Contents?: true

Size: 1.82 KB

Versions: 11

Compression:

Stored size: 1.82 KB

Contents

<% @toolbar_title = page_title "List Page Routes" %>
<%= 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/page_routes/'+id+'/edit');
        $('#delete_button, #view_button').removeClass('disabled').attr('href', '/cms/page_routes/'+id)
      })
    })
  <% end %>
<% end %>

<%= content_for :functions do %>
  <%= add_button new_page_route_path %>
  <%= edit_button %>
  <%= delete_button :title => "Are you sure you want to delete this Page Route?" %>
  <%= link_to(span_tag("View"), "#", :id => 'view_button', :class => "button") %>
  <%= link_to(span_tag("View Rails Routes"), routes_path, :class => "button") %>
<% end %>

<div class="roundedcorners">
  <table class="data">
    <tr>
      <th class="first" colspan="2"><div class="dividers">Name</div></th>
      <th colspan="2" class="last"><div class="dividers">Pattern</div></th>
    </tr>
    <% @page_routes.each do |page_route| %>
      <tr id="page_route_<%= page_route.id %>">
        <td class="first"></td>
        <td><%=h page_route.name %></td>
        <td><%=h page_route.pattern %></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>
<% if @page_routes.total_pages > 1 %>
  <%= render_pagination @page_routes, Cms::PageRoute %>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
browsercms-3.5.7 app/views/cms/page_routes/index.html.erb
browsercms-3.5.6 app/views/cms/page_routes/index.html.erb
browsercms-3.5.5 app/views/cms/page_routes/index.html.erb
browsercms-3.5.4 app/views/cms/page_routes/index.html.erb
browsercms-3.5.3 app/views/cms/page_routes/index.html.erb
browsercms-3.5.2 app/views/cms/page_routes/index.html.erb
browsercms-3.5.1 app/views/cms/page_routes/index.html.erb
browsercms-3.5.0 app/views/cms/page_routes/index.html.erb
browsercms-3.5.0.rc3 app/views/cms/page_routes/index.html.erb
browsercms-3.5.0.rc2 app/views/cms/page_routes/index.html.erb
browsercms-3.5.0.rc1 app/views/cms/page_routes/index.html.erb