Skip to content

Commit 085743d

Browse files
committed
Added toolbar for controllers using template support
1 parent 17766ab commit 085743d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/helpers/cms/template_support.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ def self.included(controller)
99

1010
helper Cms::PageHelper
1111
helper Cms::MenuHelper
12+
helper do
13+
def cms_toolbar
14+
%Q{<iframe src="#{cms_toolbar_path(:page_toolbar => 0)}" width="100%" height="100px" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" name="cms_toolbar"></iframe>}
15+
end
16+
end
1217
end
1318
end
1419
end
20+
1521
end

lib/cms/init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def version
1212
@version = SPEC.version.version
1313
end
1414

15-
def build_number; 251 end
15+
def build_number; 252 end
1616

1717
def load_rake_tasks
1818
load "#{Cms.root}/lib/tasks/cms.rake"

0 commit comments

Comments
 (0)