Sha256: 09a3dc44a5ce0c9cc2368992223595dfcc8cadb129cddf9183afeb666a9d469d
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
Contents
<%= content_for :sidebar do %> <p class="hint text_only large padded"> <%= t(:'adva.sections.hints.sections') %> </p> <p class="hint text_only large padded"> <%= t(:'adva.sections.hints.reorder') %> </p> <% end %> <%= table_for @sections, :collection_name => :sections, :class => 'sections list tree' do |t| t.column :section t.column :actions, :class => :actions t.row(:class => 'section') do |r, section| r.add_class "level_#{section.level}" r.cell content_status(section) + " " + link_to(section.title, [:admin, section, :contents], :class => section.state) r.cell link_to("Edit", [:edit, :admin, section], :class => "edit section") + link_to("Delete", [:admin, section], method: :delete, class: "delete section", data: { confirm: "Are you sure you want to delete this section?" }) end t.empty :p, :class => 'empty' do t(:'adva.sections.no_sections_in_site', :section => @section.title) + "\n" + link_to(:'adva.sections.links.create_now', [:new, :admin, :section]) end end %>
Version data entries
5 entries across 5 versions & 1 rubygems