Skip to content

Commit 6a570aa

Browse files
cristiseancribbs
cristi
authored andcommitted
fix for render_region :top for layouts and snippets
1 parent 8fafadd commit 6a570aa

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

app/views/admin/layouts/index.html.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- @page_title = 'Layouts - ' + default_page_title
22

33
.outset
4-
- render_region :top
4+
= render_region :top
55
%table#layouts.index
66
%thead
77
%tr

app/views/admin/snippets/index.html.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- @page_title = 'Snippets - ' + default_page_title
22

33
.outset
4-
- render_region :top
4+
= render_region :top
55
%table#snippets.index
66
%thead
77
%tr

lib/radiant/admin_ui.rb

-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ def load_default_snippet_regions
194194
edit.form_bottom.concat %w{edit_buttons edit_timestamp}
195195
end
196196
snippet.index = RegionSet.new do |index|
197-
index.top.concat %w{help_text}
198197
index.thead.concat %w{title_header modify_header}
199198
index.tbody.concat %w{title_cell modify_cell}
200199
index.bottom.concat %w{new_button}
@@ -211,7 +210,6 @@ def load_default_layout_regions
211210
edit.form_bottom.concat %w{edit_buttons edit_timestamp}
212211
end
213212
layout.index = RegionSet.new do |index|
214-
index.top.concat %w{help_text}
215213
index.thead.concat %w{title_header modify_header}
216214
index.tbody.concat %w{title_cell modify_cell}
217215
index.bottom.concat %w{new_button}

0 commit comments

Comments
 (0)