Sha256: c695baf9ab03b24c092779f091d9a4e0a6fc6bf81baf04eb1179192188ae5173
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 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-30"> <div class="col-md-12"> <% if page.feature %> <%#= theme_button("Manage #{page.feature.display_name}", 'list', dhatu.new_section_path(page_id: page), classes: "btn btn-success btn-xs ml-30 mb-5", btn_type: "success") if @current_user.super_admin? %> <p class="ml-30"> Go to <%= page.feature.display_name %> section to edit the contents on this page. </p> <% else %> <%= 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? %> <% end %> </div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dhatu-0.2.1 | app/views/dhatu/sections/_index.html.erb |