% content_for :page_scripts do %> function open_content_dialog(type, content_id) { var $this = $(this); var outputHolder = $("
Title | <%= @page.title %> | |||
This page is currently deleted - it won't be visible to users | ||||
This page is only a stub page - it can't be edited or published
To make the page editable you should click "Edit Info" above, then choose a template and change the status to something other than "Stub".
|
||||
Status: | <%= @page.status.name %> | |||
Locked: | <%= @page.locked? ? "Yes" : "No" %> | <%= link_to @page.locked? ? "No" : "Yes", "/page/#{@page.id}/info?locked=#{!@page.locked?}", :class=>"action", :method=>:post %> | ||
Path: | <%= @page.full_path %> | |||
Links To This Page: | <%= PageLink.sys(_sid).where(:url=>@page.full_path).count %> | |||
Template: | <%= link_to(@page.page_template.name, "/admin/page_templates/#{@page.page_template_id}") rescue '' %> | <%= icon_to "Change", "/page/#{@page.id}/page_template", false, :style=>"position:relative; left: -3px;" %> | ||
Use Mobile Version: | <%= @page.mobile_dif==1 ? 'Yes' : 'No' %> | <%= link_to @page.mobile_dif==1 ? 'No' : 'Yes', "/page/#{@page.id}/info?mobile_dif=#{@page.mobile_dif==1 ? 0 : 1}", :class=>"action", :method=>:post %> | ||
Tags: | <%= field_reveal(@page.tags, 200) %> | |||
<% if first %>Terms: <% else %> <% end %> | <% if term.page_template_term %> <%= term.page_template_term.name %> : <%= term.value %> <% end %> | <% if first %> <%= icon_to "Edit", "/page/#{@page.id}/terms", false, :style=>"margin-left: 10px;" %> <% first = false %> <% else %> <% end %> | ||
Terms: | <%= icon_to "Edit", "/page/#{@page.id}/terms", false, :style=>"margin-left: 10px;" %> | |||
Meta Description: | <%= field_reveal(@page.meta_description, 80) %> | |||
Meta Keywords: | <%= field_reveal(@page.meta_keywords, 80) %> | |||
Created: | <%= time_ago_in_words(@page.created_at) %> ago @ <%= @page.updated_at %> | |||
Updated: | <%= time_ago_in_words(@page.updated_at) %> ago @ <%= @page.updated_at %> | |||
Published At: | <% if @page.published_at %> <%= time_ago_in_words(@page.published_at) %> ago @ <%= @page.published_at.to_s rescue '' %> <% end %> | |||
Favourite: | <% if @page.is_favourite?(current_user) %>Yes | <%= link_to "Remove", "/pages/#{@page.id}/favourite", :method=>:delete, :class=>"action" %> | <% else %>No | <%= link_to "Add", "/pages/#{@page.id}/favourite", :method=>:post, :class=>"action" %> | <% end %>
Currently editing: | <%= @being_edited_by.join(',') %> | <%= link_to "Clear", "/pages/notification/#{@page.id}/delete", {:method=>:post, :class=>"action"} %> | ||
Home Page: | This page <%= @page.is_home_page? ? 'is' : 'is not' %> the home page. | <% unless @page.is_home_page? %> <%= link_to 'Make it the home page', "/page/#{@page.id}/make_home", :method=>:post, :class=>"action", :confirm=>"Are you sure you want to make this page the home page?" if @page.status==Status.published_status(_sid) && !@page.is_deleted? %> <% end %> | ||
Include in sitemap: | <% if @page.in_sitemap? %>Yes | <%= link_to "Don't Include", "/page/#{@page.id}/info?sitemap=0", :class=>"action", :style=>"margin-left: 10px;", :method=>:post, :class=>"action" %> | <% else %>No | <%= link_to "Do Include", "/page/#{@page.id}/info?sitemap=1", :class=>"action", :style=>"margin-left: 10px;", :method=>:post, :class=>"action" %> | <% end %>
Anon Comments | <%= @page.allow_anonymous_comments? ? "Yes" : "No" %> | <%= link_to @page.allow_anonymous_comments? ? "No" : "Yes", "/page/#{@page.id}/info?anonymous_comments=#{!@page.allow_anonymous_comments?}", :class=>"action", :method=>:post %> | ||
User Comments | <%= @page.allow_user_comments? ? "Yes" : "No" %> | <%= link_to @page.allow_user_comments? ? "No" : "Yes", "/page/#{@page.id}/info?user_comments=#{!@page.allow_user_comments?}", :class=>"action", :method=>:post %> | ||
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", "/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"} %> |
Menu: <%= link_to menu_item.menu.name, "/menu/#{menu_item.menu_id}" %> | Item: <%= "#{menu_item.parent.name} →".html_safe if menu_item.parent_id != 0 && menu_item.parent %> <%= menu_item.name %> |
<%= icon_to "Remove", "/menu/item/#{menu_item.id}", false, :method=>:delete %>
|
Append to menu: |
<% menus.each do |menu| %>
<% next if on_menu[menu.id] || @page.is_deleted? %>
<%= icon_to_function menu.name, "$('#parents_#{menu.id}').show();" %>
<% end %>
<% menus.each do |menu| %> <% next if on_menu[menu.id] || @page.is_deleted? %> <% end %> |
|