radiant-forum-extension 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.7
1
+ 2.0.8
@@ -8,7 +8,7 @@
8
8
  = t('forums_introduction')
9
9
 
10
10
  - content_for :sidebar do
11
- = render :partial => 'posts/search_form'
11
+ = render :partial => 'posts/search_form', :locals => {:minimal => true}
12
12
  = render :partial => 'topics/latest'
13
13
  = render :partial => 'topics/busiest'
14
14
 
@@ -11,6 +11,7 @@
11
11
  = link_to t('new_topic_here'), new_post_url(:forum_id => @forum.id)
12
12
 
13
13
  - content_for :sidebar do
14
+ = render :partial => 'posts/search_form'
14
15
  = render :partial => "topics/latest"
15
16
 
16
17
  - content_for :pagination do
@@ -1,27 +1,32 @@
1
+ - minimal ||= false
2
+
1
3
  %form.friendly{:action => posts_url, :method => :get}
2
- %h2
3
- =t('search_header')
4
+ - unless minimal
5
+ %h2
6
+ =t('search_header')
7
+
4
8
  %p
5
9
  %label{:for => "q"}
6
- = t('search_form.query_label')
10
+ = t(minimal ? 'search_form.minimal_query_label' : 'search_form.query_label')
7
11
  = text_field_tag "q", params[:q], :class => 'titular'
8
12
 
9
- %p
10
- %label{:for => "forum_id"}
11
- = t('search_form.forum_label')
13
+ - unless minimal
14
+ %p
15
+ %label{:for => "forum_id"}
16
+ = t('search_form.forum_label')
12
17
 
13
- %select{:name => "forum_id"}
14
- %option{:value => ""}= t('anywhere')
15
- = options_from_collection_for_select(Forum.find(:all), "id", "name", params[:forum_id].to_i)
18
+ %select{:name => "forum_id"}
19
+ %option{:value => ""}= t('anywhere')
20
+ = options_from_collection_for_select(Forum.find(:all), "id", "name", params[:forum_id].to_i)
16
21
 
17
- - if Radiant::Config['forum.allow_search_by_reader?']
18
- %p
19
- %label{:for => "reader_id"}
20
- = t('search_form.person_label')
21
- %select{:name => "reader_id"}
22
- %option{:value => ""}
23
- =t('anyone')
24
- = options_from_collection_for_select(Reader.find(:all), "id", "name", params[:reader_id].to_i)
22
+ - if Radiant::Config['forum.allow_search_by_reader?']
23
+ %p
24
+ %label{:for => "reader_id"}
25
+ = t('search_form.person_label')
26
+ %select{:name => "reader_id"}
27
+ %option{:value => ""}
28
+ =t('anyone')
29
+ = options_from_collection_for_select(Reader.find(:all), "id", "name", params[:reader_id].to_i)
25
30
 
26
31
  %p.buttons
27
32
  %input{:type => 'submit', :value => "Search"}
@@ -8,7 +8,7 @@
8
8
  = render :partial => 'topics/topic', :collection => @topics
9
9
 
10
10
  - content_for :sidebar do
11
- = render :partial => 'posts/search_form'
11
+ = render :partial => 'posts/search_form', :locals => {:minimal => true}
12
12
  = render :partial => 'forums/latest'
13
13
  = render :partial => 'topics/busiest'
14
14
 
@@ -16,6 +16,10 @@
16
16
  - content_for :first_post do
17
17
  = render :partial => 'posts/post', :locals => {:post => @topic.posts.first, :headless => true, :with_context => true}
18
18
 
19
+ - content_for :sidebar do
20
+ = render :partial => 'posts/search_form', :locals => {:minimal => true}
21
+ = render :partial => 'topics/latest'
22
+
19
23
  - content_for :feedurl do
20
24
  = topic_path(@topic, :format => :rss)
21
25
 
@@ -42,9 +46,6 @@
42
46
  - content_for :reply_form do
43
47
  = render :partial => 'topics/reply', :locals => {:topic => @topic}
44
48
 
45
- - content_for :sidebar do
46
- = render :partial => 'topics/latest'
47
-
48
49
 
49
50
 
50
51
  #forum
@@ -145,7 +145,8 @@ en:
145
145
  search_form:
146
146
  forum_label: "In this discussion category"
147
147
  person_label: "From this person"
148
- query_label: "Look for this text"
148
+ minimal_query_label: "Forum search"
149
+ query_label: "Search for this text"
149
150
  search_header: "Forum Search"
150
151
  search_introduction: "Please choose a search phrase and/or a person or discussion category."
151
152
  search_results: "Search Results"
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.7"
4
+ version "2.0.8"
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
 
@@ -42,4 +42,4 @@ class ForumExtension < Radiant::Extension
42
42
  end
43
43
  end
44
44
 
45
- end
45
+ end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-forum-extension}
8
- s.version = "2.0.7"
8
+ s.version = "2.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["spanner"]
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: 1
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 7
10
- version: 2.0.7
9
+ - 8
10
+ version: 2.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - spanner