Sha256: b272d20affd57ae095f621e6fd351165e4c8b26ef228e2ff6314a8f110d1fb0b
Contents?: true
Size: 920 Bytes
Versions: 11
Compression:
Stored size: 920 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 'drag-handle.gif', :class => 'handle silhouette' %> <%= page.nickname -%> <% end -%> <% end %> </ul> <% end %> <% end -%> <% end -%>
Version data entries
11 entries across 11 versions & 1 rubygems