radiant-forum-extension 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/views/posts/index.html.haml +12 -6
- data/config/locales/en.yml +1 -1
- data/forum_extension.rb +1 -1
- data/radiant-forum-extension.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.6
|
@@ -1,6 +1,6 @@
|
|
1
1
|
- if !@term.blank? || @reader || @forum || @topic
|
2
2
|
- @searching = true
|
3
|
-
- summary = [t('
|
3
|
+
- summary = [t('topics_and_posts')]
|
4
4
|
- summary << t('in') + ' ' + link_to(@forum.name, forum_url(@forum)) if @forum
|
5
5
|
- summary << t('containing') + " <strong>#{@term}</strong>" unless @term.blank?
|
6
6
|
- summary << t('posted_by') + ' ' + link_to(@reader.name, reader_url(@reader)) if @reader
|
@@ -12,10 +12,11 @@
|
|
12
12
|
= t('posts_heading')
|
13
13
|
|
14
14
|
- content_for :introduction do
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
%p
|
16
|
+
- if @searching
|
17
|
+
= summary.join(' ') + ":"
|
18
|
+
- else
|
19
|
+
= t('posts_introduction')
|
19
20
|
|
20
21
|
- content_for :sidebar do
|
21
22
|
- unless @searching && @posts.empty?
|
@@ -31,7 +32,12 @@
|
|
31
32
|
= yield :title
|
32
33
|
|
33
34
|
- content_for :feedlink do
|
34
|
-
=
|
35
|
+
- url_parts = {:format => :rss}
|
36
|
+
- url_parts[:term] = @term unless @term.blank?
|
37
|
+
- url_parts[:reader_id] = @reader.id if @reader
|
38
|
+
- url_parts[:forum_id] = @forum.id if @forum
|
39
|
+
- url_parts[:reader_id] = @topic.id if @topic
|
40
|
+
= feed_link(posts_path(url_parts))
|
35
41
|
|
36
42
|
- content_for :messages do
|
37
43
|
- if @posts.empty?
|
data/config/locales/en.yml
CHANGED
@@ -148,7 +148,6 @@ en:
|
|
148
148
|
search_results: "Search Results"
|
149
149
|
separator: ':'
|
150
150
|
showing: "showing"
|
151
|
-
showing_posts: "Showing topics and messages"
|
152
151
|
sorry_locked: "Sorry: this topic is locked."
|
153
152
|
start_topic: "Start a new conversation"
|
154
153
|
started: "started"
|
@@ -170,6 +169,7 @@ en:
|
|
170
169
|
other: "%{count} topics, most recently "
|
171
170
|
topic_show_introduction: ""
|
172
171
|
topic_removed: "Topic removed"
|
172
|
+
topics_and_posts: "Topics and messages"
|
173
173
|
to: "to"
|
174
174
|
to_add_post: "To add a %{message_type}"
|
175
175
|
topic: "topic"
|
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 "2.0.
|
4
|
+
version "2.0.6"
|
5
5
|
description "Nice clean forums and page comments for inclusion in your radiant site. Requires the reader extension and share_layouts."
|
6
6
|
url "http://spanner.org/radiant/forum"
|
7
7
|
|
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:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 6
|
10
|
+
version: 2.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- spanner
|