<% if @current_user.super_admin? %> <% sections = page.sections %> <% else %> <% sections = page.sections.published %> <% end %> <% sections.order("priority ASC, created_at DESC").each do |section| %>
<%= link_to raw("#{section.name}"), section_path(section), remote: true, style: "font-size: 18px;;color:#4b4b4b;margin-right:20px;" %> <%= display_manage_links(section, @current_user) %> <%= display_publishable_links(section) if @current_user.super_admin? %> <%= clear_tag %>
<% end %>
<% if page.sections.empty? %>

You have not added any sections for this page. Click on the below button to add one.

<% end %> <%= theme_button('Add a Section', 'plus', dhatu.new_section_path(page_id: page), classes: "btn btn-success btn-xs ml-30 mb-5", btn_type: "info") if @current_user.super_admin? %> <% if page.feature %> <% begin url = url_for(page.feature.name.constantize) rescue url = nil end %> <% if page.sections.any? %>

Go to <%= page.feature.display_name %> section to edit rest of the contents on this page.

<% else %>

Go to <%= page.feature.display_name %> section to edit the contents on this page.

<% end %> <%= theme_button("Click Here to go to 'Manage #{page.feature.display_name}'", 'list', url, classes: "btn btn-primary btn-xs ml-30 mb-5", btn_type: "default", remote: false) if url %> <% end %>