radiant-forum-extension 3.0.5 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,11 +32,13 @@
32
32
 
33
33
  = render :partial => 'shared/standard_forum_parts'
34
34
 
35
- .forum
36
- = yield :pagination if @topics.previous_page
37
- = yield :messages
38
- = yield :pagination if @topics.next_page
39
- = yield :newtopic
40
-
35
+ - content_for :index do
36
+ .forum
37
+ = yield :pagination if @topics.previous_page
38
+ = yield :messages
39
+ = yield :pagination if @topics.next_page
40
+ = yield :newtopic
41
+
42
+ = yield :index
41
43
 
42
44
 
data/forum_extension.rb CHANGED
@@ -11,6 +11,7 @@ class ForumExtension < Radiant::Extension
11
11
  Reader.send :include, ForumReader # has topics and posts
12
12
  ReaderNotifier.send :include, ForumReaderNotifier # sets up post-notification email
13
13
  Page.send :include, ForumPage # makes commentable and reads some configuration
14
+ RailsPage.send :include, ForumRailsPage # set cache? response based on radiant configuration
14
15
  Page.send :include, ForumTags # defines radius tags for highlighting forum content on other pages
15
16
  AccountsController.send :helper, ForumHelper # provides some linking and other helpers on reader pages
16
17
  ReaderSessionsController.send :include, ForumReaderSessionsController # changes default login destination to the forum front page
@@ -0,0 +1,7 @@
1
+ module ForumRailsPage
2
+
3
+ def cache?
4
+ Radiant.config['forum.cached?']
5
+ end
6
+
7
+ end
@@ -1,5 +1,5 @@
1
1
  module RadiantForumExtension
2
- VERSION = '3.0.5'
2
+ VERSION = '3.0.6'
3
3
  SUMMARY = %q{Forum and Comment Extension for Radiant CMS}
4
4
  DESCRIPTION = %q{Nice clean forums and page comments for inclusion in your radiant site.}
5
5
  URL = "http://radiant.spanner.org/forum"
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: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 5
10
- version: 3.0.5
9
+ - 6
10
+ version: 3.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - William Ross
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-14 00:00:00 Z
18
+ date: 2011-11-01 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: radiant-reader-extension
@@ -167,6 +167,7 @@ files:
167
167
  - lib/commentable_model.rb
168
168
  - lib/forum_admin_ui.rb
169
169
  - lib/forum_page.rb
170
+ - lib/forum_rails_page.rb
170
171
  - lib/forum_reader.rb
171
172
  - lib/forum_reader_notifier.rb
172
173
  - lib/forum_reader_sessions_controller.rb
@@ -233,7 +234,6 @@ files:
233
234
  - public/stylesheets/sass/admin/forum_dashboard.sass
234
235
  - public/stylesheets/sass/forum.sass
235
236
  - public/stylesheets/sass/gallery.sass
236
- - radiant-forum-extension-3.0.4.gem
237
237
  - radiant-forum-extension.gemspec
238
238
  - Rakefile
239
239
  - README.md
@@ -260,7 +260,7 @@ files:
260
260
  homepage: http://radiant.spanner.org/forum
261
261
  licenses: []
262
262
 
263
- post_install_message: "\n Add this to the Gemfile in your radiant project:\n\n gem 'radiant-forum-extension', '~> 3.0.5'\n\n "
263
+ post_install_message: "\n Add this to the Gemfile in your radiant project:\n\n gem 'radiant-forum-extension', '~> 3.0.6'\n\n "
264
264
  rdoc_options: []
265
265
 
266
266
  require_paths:
Binary file