radiant-forum-extension 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -0,0 +1,10 @@
1
+ %fieldset
2
+ %h3 Forum
3
+ %p
4
+ = edit_config 'forum.layout'
5
+ %p
6
+ = edit_config 'forum.editable_period'
7
+ %p
8
+ = edit_config 'forum.public?'
9
+ %p
10
+ = edit_config 'forum.allow_page_comments?'
@@ -0,0 +1,8 @@
1
+ %p.ruled
2
+ = show_config 'forum.layout'
3
+ %p.ruled
4
+ = show_config 'forum.editable_period'
5
+ %p.ruled
6
+ = show_config 'forum.public?'
7
+ %p.ruled
8
+ = show_config 'forum.allow_page_comments?'
data/forum_extension.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require_dependency 'application_controller'
2
2
 
3
3
  class ForumExtension < Radiant::Extension
4
- version "0.4"
4
+ version "0.6.1"
5
5
  description "Nice clean forums and page comments for inclusion in your radiant site. Derived long ago from beast. Requires the reader extension and share_layouts."
6
6
  url "http://spanner.org/radiant/forum"
7
7
 
@@ -14,13 +14,13 @@ class ForumExtension < Radiant::Extension
14
14
  UserActionObserver.instance.send :add_observer!, Topic
15
15
  UserActionObserver.instance.send :add_observer!, Post
16
16
  Page.send :include, ForumTags
17
- Admin::ReaderSettingsController.make_settable 'forum.editable_period' => 15, 'forum.public?' => true, 'forum.layout' => '', 'forum.allow_page_comments?' => true
18
17
 
19
18
  unless defined? admin.forum # UI is a singleton
20
19
  Radiant::AdminUI.send :include, ForumAdminUI
21
20
  admin.forum = Radiant::AdminUI.load_default_forum_regions
22
- admin.pages.edit.add :parts_bottom, "edit_commentability", :after => "edit_layout_and_type"
23
- admin.reader_settings.index.add :settings, "forum", :after => "sender"
21
+ # admin.pages.edit.add :parts_bottom, "edit_commentability", :after => "edit_layout_and_type"
22
+ admin.reader_configuration.show.add :settings, "forum", :after => "sender"
23
+ admin.reader_configuration.edit.add :form, "edit_forum", :after => "edit_sender"
24
24
  if defined? Site && admin.sites
25
25
  Site.send :include, ForumSite
26
26
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-forum-extension}
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["spanner"]
12
- s.date = %q{2010-10-04}
12
+ s.date = %q{2010-10-19}
13
13
  s.description = %q{Nice clean forums and page comments for inclusion in your radiant site. Derived long ago from beast. Requires the reader extension and share_layouts.}
14
14
  s.email = %q{will@spanner.org}
15
15
  s.extra_rdoc_files = [
@@ -35,7 +35,8 @@ Gem::Specification.new do |s|
35
35
  "app/views/admin/forums/new.html.haml",
36
36
  "app/views/admin/forums/remove.html.haml",
37
37
  "app/views/admin/pages/_edit_commentability.html.haml",
38
- "app/views/admin/reader_settings/_forum.html.haml",
38
+ "app/views/admin/reader_configuration/_edit_forum.html.haml",
39
+ "app/views/admin/reader_configuration/_forum.html.haml",
39
40
  "app/views/admin/sites/_choose_forum_layout.html.haml",
40
41
  "app/views/forums/_forum.html.haml",
41
42
  "app/views/forums/index.html.haml",
@@ -100,7 +101,6 @@ Gem::Specification.new do |s|
100
101
  "lib/forum_site.rb",
101
102
  "lib/forum_tags.rb",
102
103
  "lib/tasks/radiant_forum_extension_tasks.rake",
103
- "pkg/radiant-forum-extension-0.5.0.gem",
104
104
  "public/images/admin/forum.png",
105
105
  "public/images/admin/new-forum.png",
106
106
  "public/images/admin/nominus.png",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-forum-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - spanner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-04 00:00:00 +01:00
18
+ date: 2010-10-19 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -104,7 +104,8 @@ files:
104
104
  - app/views/admin/forums/new.html.haml
105
105
  - app/views/admin/forums/remove.html.haml
106
106
  - app/views/admin/pages/_edit_commentability.html.haml
107
- - app/views/admin/reader_settings/_forum.html.haml
107
+ - app/views/admin/reader_configuration/_edit_forum.html.haml
108
+ - app/views/admin/reader_configuration/_forum.html.haml
108
109
  - app/views/admin/sites/_choose_forum_layout.html.haml
109
110
  - app/views/forums/_forum.html.haml
110
111
  - app/views/forums/index.html.haml
@@ -169,7 +170,6 @@ files:
169
170
  - lib/forum_site.rb
170
171
  - lib/forum_tags.rb
171
172
  - lib/tasks/radiant_forum_extension_tasks.rake
172
- - pkg/radiant-forum-extension-0.5.0.gem
173
173
  - public/images/admin/forum.png
174
174
  - public/images/admin/new-forum.png
175
175
  - public/images/admin/nominus.png
@@ -1,4 +0,0 @@
1
- = render :partial => 'setting', :locals => {:key => 'forum.layout', :label => "Forum layout", :notes => "The radiant layout that will be used to present forum topics and posts"}
2
- = render :partial => 'setting', :locals => {:key => 'forum.editable_period', :label => "Editable interval", :notes => "The period (in minutes) for which forum messages remain editable by their author"}
3
- = render :partial => 'setting', :locals => {:key => 'forum.public?', :label => "Forum visible to the public"}
4
- = render :partial => 'setting', :locals => {:key => 'forum.allow_page_comments?', :label => "Page comments enabled", :notes => "Has no effect unless the comment mechanism is invoked by the layout."}
Binary file