Sha256: 18502b53813dd61cf5e3dcb9959243b3ed4753e6165e3e36d99af2c11ac53021
Contents?: true
Size: 1.72 KB
Versions: 12
Compression:
Stored size: 1.72 KB
Contents
<% if @current_user.super_admin? %> <% sections = page.sections %> <% else %> <% sections = page.sections.published %> <% end %> <% sections.order("priority ASC, created_at DESC").each do |section| %> <div id="div_section_<%= section.id %>" class="row ml-30 mb-5"> <span class="pull-left"> <%= link_to raw("<i class='fa-reorder mr-10'></i>#{section.name}"), section_path(section), remote: true, style: "font-size: 18px;;color:#4b4b4b;margin-right:20px;" %> </span> <span class="action-links"> <%= display_manage_links(section, @current_user) %> <%= display_publishable_links(section) if @current_user.super_admin? %> </span> <%= clear_tag %> </div> <% end %> <div class="row mt-10"> <div class="col-md-12"> <% if page.sections.empty? %> <p id="p_section_empty_message_for_page_<%= page.id %>" class="ml-30"> You have not added any sections for this page. Click on the below button to add one. </p> <% 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? %> <p class="mt-60 ml-30"> Go to <%= page.feature.display_name %> section to edit rest of the contents on this page. </p> <% else %> <p class="mt-60 ml-30"> Go to <%= page.feature.display_name %> section to edit the contents on this page. </p> <% 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 %> </div> </div>
Version data entries
12 entries across 12 versions & 1 rubygems