-
Notifications
You must be signed in to change notification settings - Fork 346
/
index.html.haml
30 lines (27 loc) · 1020 Bytes
/
index.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%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
- @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, snippet_edit_url(:id => snippet)
- tbody.modify_cell do
%td.remove
= link_to image('remove', :alt => 'Remove Snippet'), snippet_remove_url(:id => snippet)
- render_region :bottom do |bottom|
- bottom.new_button do
%p
= link_to image('new-snippet', :alt => 'New Snippet'), snippet_new_url