Sha256: a926685fd172a2ef72c2bd04bd3250b3041262908187f810c732230e0cc3657f
Contents?: true
Size: 1.14 KB
Versions: 11
Compression:
Stored size: 1.14 KB
Contents
%h1 Snippets - render_region :top do |top| - top.help_text do %p Snippets are generally small pieces of content which are included in other pages or layouts. %table#snippets.index{:cellspacing=>"0", :border=>"0", :cellpadding=>"0"} %thead %tr - render_region :thead do |thead| - thead.title_header do %th.snippet Snippet - thead.modify_header do %th.modify Modify %tbody - if @snippets.any? - @snippets.each do |snippet| %tr.node.level-1 - render_region :tbody do |tbody| - tbody.title_cell do %td.snippet = image('snippet', :alt => 'snippet-icon') %span= link_to snippet.name, edit_admin_snippet_url(snippet) - tbody.modify_cell do %td.remove = link_to image('remove', :alt => 'Remove Snippet'), remove_admin_snippet_url(snippet) - else %tr %td.note{:colspan => admin.snippet.index.tbody.length} No Snippets - render_region :bottom do |bottom| - bottom.new_button do %p = link_to image('new-snippet', :alt => 'New Snippet'), new_admin_snippet_url
Version data entries
11 entries across 11 versions & 2 rubygems