app/views/cms/page_routes/index.html.erb in browsercms-3.1.5 vs app/views/cms/page_routes/index.html.erb in browsercms-3.3.0.beta

- old
+ new

@@ -1,8 +1,8 @@ <% @toolbar_title = page_title "List Page Routes" %> -<% content_for(:html_head) do %> - <% javascript_tag do %> +<%= content_for(:html_head) do %> + <%= javascript_tag do %> jQuery(function($){ $('table.data tbody tr').hover(function(){ $(this).addClass('hover') }, function(){ $(this).removeClass('hover') @@ -17,16 +17,13 @@ }) }) <% end %> <% end %> -<% content_for :functions do %> - <%= link_to(span_tag("&nbsp;Add&nbsp;"), new_cms_page_route_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 http_delete confirm_with_title disabled", - :title => "Are you sure you want to delete this Page Route?" %> +<%= content_for :functions do %> + <%= add_button new_cms_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"), cms_routes_path, :class => "button") %> <% end %> <div class="roundedcorners">