Sha256: fa1c2813e3c124b0f8644736430d02ea4c98f6a73c44604285cfaff4f3f7770f
Contents?: true
Size: 1.04 KB
Versions: 26
Compression:
Stored size: 1.04 KB
Contents
<% if administrator? %> <% content_for :admin_context_menu do %> <h2><%= t('admin_section') %></h2> <ul class="list-group"> <li class="list-group-item"><%= link_to t('admin_panel'), pages_path %></li> <%= content_tag :li, link_to( "#{t('activerecord.models.comments').capitalize} <span class='badge'>#{Comment.pending.count}</span>".html_safe, pending_comments_path ), class: 'list-group-item' if Comment.pending.count > 0 %> <li class="list-group-item"><%= 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 list-group" data-update-url="<%= sort_pages_path %>"> <% for page in Page.not_for_blog.orphans.published.by_menu_position %> <%= content_tag :li, page, class: 'page list-group-item', id: "page_#{page.id}" do %> <%= image_tag 'admin/drag-handle.gif', class: 'handle' %> <%= page.nickname -%> <% end -%> <% end %> </ul> <% end %> <% end -%> <% end -%>
Version data entries
26 entries across 26 versions & 1 rubygems