anchor.diff:    <tbody>
       <% @layouts.each do |item| %>
         <tr>
  -        <td><%= link_to item.name, edit_path_with_route(item), target: "_blank" %></td>
  +        <td><%= link_to item.name, show_path_with_route(item), target: "_blank" %></td>
           <td><%= link_to item.filename, "#{@cur_site.full_url}#{item.filename}", target: "_blank" %></td>
         </tr>
       <% end %>
  
positive.code: <%
  def edit_path_with_route(item)
    model = item.class.name.underscore.sub(/^.+?\//, "")
  
    path = "edit_cms_#{model}_path".to_sym
    return send(path, id: item.id) if item.parent.blank?
  
    if item.respond_to?(:route)
      route = item.route =~ /cms\// ? "node_page" : item.route.gsub("/", "_")
      path  = "edit_#{route}_path".to_sym
      return send(path, cid: item.parent.id, id: item.id) if respond_to?(path)
    end
  
    path = "edit_node_#{model}_path".to_sym
    return send(path, cid: item.parent.id, id: item.id)
  end
  %>
  
negative.code:   <tbody>
      <% @pages.each do |item| %>
        <tr>
          <td><%= link_to item.name, show_path_with_route(item), target: "_blank" %></td>
          <td><%= link_to item.filename, "#{@cur_site.full_url}#{item.filename}", target: "_blank" %></td>
        </tr>
      <% end %>
  