Sha256: 3368bfb53b7d806453c419bb1831ee2b9a18fc6d81148e516d245e70c14740ae

Contents?: true

Size: 924 Bytes

Versions: 2

Compression:

Stored size: 924 Bytes

Contents

<% if administrator? %>

	<% content_for :admin_context_menu do %>

		<h2><%= t('admin_section') %></h2>
		<ul>
			<li><%= link_to t('admin_panel'), pages_path %></li>
			<%= content_tag :li, link_to("#{t('activerecord.models.comments').capitalize} #{"(#{Comment.pending.count})"}", pending_comments_path) if Comment.pending.count > 0 %>
			<li><%= link_to t('pages.edit_this').capitalize, edit_page_path(page) %></li>
		</ul>

		<% if Page.not_for_blog.orphans.published.any? %>
			<h3><%= t('pages.reorder_root_menus') %></h3>
			<ul class="draggable" data-update-url="<%= sort_pages_path %>">
			  <% for page in Page.not_for_blog.orphans.published.by_menu_position %>
					<%= content_tag :li, page, class: 'page', id: "page_#{page.id}" do %>
						<%= image_tag 'admin/drag-handle.gif', :class => 'handle silhouette' %> <%= page.nickname -%>
					<% end -%>
			  <% end %>
			</ul>
		<% end %>

	<% end -%>

<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tkh_content-0.9.6 app/views/pages/_admin_context_menu.html.erb
tkh_content-0.9.5 app/views/pages/_admin_context_menu.html.erb