forked from radiant/radiant
/
index.html.haml
35 lines (33 loc) · 1.03 KB
/
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
31
32
33
34
35
- @page_title = 'Layouts - ' + default_page_title
.outset
= render_region :top
%table#layouts.index
%thead
%tr
- render_region :thead do |thead|
- thead.title_header do
%th.layout
Layout
- thead.modify_header do
%th.modify
Modify
%tbody
- if @layouts.any?
- @layouts.each do |layout|
%tr.node.level_1
- render_region :tbody do |tbody|
- tbody.title_cell do
%td.layout
= image('layout', :alt => '')
= link_to layout.name, edit_admin_layout_url(layout)
- tbody.modify_cell do
%td.remove
= link_to image('remove', :alt => 'Remove Layout'), remove_admin_layout_url(layout)
- else
%tr
%td.note{:colspan => admin.layout.index.tbody.length} No Layouts
- render_region :bottom do |bottom|
- bottom.new_button do
#actions
%ul
%li= link_to "New Layout", new_admin_layout_url