lib/zen/package/sections/lib/sections.rb in zen-0.4.2 vs lib/zen/package/sections/lib/sections.rb in zen-0.4.3

- old
+ new

@@ -18,20 +18,39 @@ p.permission :show_section_entry , 'section_entries.permissions.show' p.permission :edit_section_entry , 'section_entries.permissions.edit' p.permission :new_section_entry , 'section_entries.permissions.new' p.permission :delete_section_entry, 'section_entries.permissions.delete' + + p.permission :show_revision, 'revisions.permissions.show' + p.permission :restore_revision, 'revisions.permissions.restore' end require __DIR__('sections/model/section') +require __DIR__('sections/model/revision') require __DIR__('sections/model/section_entry') require __DIR__('sections/model/section_entry_status') require __DIR__('sections/controller/sections') require __DIR__('sections/controller/section_entries') +require __DIR__('sections/controller/revisions') require __DIR__('sections/widget/recent_entries') Zen::Controller::FrontendController.helper(:section_frontend) Zen::Event.listen :post_start do Zen::Language.load('sections') Zen::Language.load('section_entries') +end + +Settings::SettingsGroup.add do |group| + group.title = 'sections.tabs.content' + group.name = :content +end + +Settings::Setting.add do |setting| + setting.title = 'revisions.labels.maximum' + setting.description = 'revisions.descriptions.maximum' + setting.name = :maximum_revisions + setting.group = :content + setting.type = 'textbox' + setting.default = 10 end