app/views/pages/info.html.erb in kit_cms-2.3.20 vs app/views/pages/info.html.erb in kit_cms-2.3.22

- old
+ new

@@ -17,13 +17,16 @@ <h1 class="<%= @page.is_stub? ? 'stub' : 'page' %>_icon">Page '<%= @page.title %>'</h1> <div id="favourite" style="margin-bottom: 5px;"> <%# TODO: render(:partial=>"favourite_link", :locals=>{:page_url=>@page.full_path }) %> </div> + <% unless @page.is_stub? %> <div class="clearfix"> <%= icon_to "View", @page.full_path, false, :method=>:get %> <%= icon_to("Edit", @page.full_path+"?edit=1") unless @page.is_stub? || @page.locked? %> </div> + <% end %> + <h1 class="summary_icon" style="margin-top: 20px;">Summary</h1> <div class="clearfix"> <%= icon_to "Edit Info", "/page/#{@page.id}/edit" unless @page.locked? %> <% if @page.status.is_published==0 %> <%= link_to "Publish", "/page/#{@page.id}/info?publish=1", {:method=>:post, :class=>"action"} unless @page.is_stub? || @page.locked? %> @@ -68,11 +71,17 @@ <tr> <td>Path:</td> <td colspan='2'><%= @page.full_path %></td> </tr> + <tr> + <td>Links To This Page:</td> + <td colspan="2"><%= PageLink.sys(_sid).where(:url=>@page.full_path).count %></td> + </tr> + + <tr> <td>Template:</td> <td><%= link_to(@page.page_template.name, "/admin/page_templates/#{@page.page_template_id}") rescue '' %></td> <td><%= icon_to "Change", "/page/#{@page.id}/page_template", false, :style=>"position:relative; left: -3px;" %></td> </tr> @@ -201,12 +210,14 @@ </tr> <% end %> <tr class="advanced"> <td colspan="3"> - <p>Show: <%= icon_to "Page Analysis", "/db/content/analyse/#{@page.id}", false, :class=>"icon_stack advanced" %> + <p>Show: + <%= icon_to "Links", "/page/#{@page.id}/links", false %> + <%= icon_to "Page Analysis", "/db/content/analyse/#{@page.id}", false, :class=>"icon_stack advanced" %> <%= icon_to "Content", "/page/#{@page.id}/contents", false, :class=>"advanced" %> - <%= icon_to "Blocks Used On This Page", "/admin/block_instances?page_id=#{@page.id}", false, :class=>"advanced" %> + <%= icon_to "Blocks Used", "/admin/block_instances?page_id=#{@page.id}", false, :class=>"advanced" %> <%= icon_to_function "Access Permissions", "$('#access').slideDown(); $('#show_access_link').hide();",false, {:id=>'show_access_link', :class=>"icon_stack"} %> </p> </td> </tr>