radiant-forum-extension 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,16 +13,7 @@
13
13
  ~ text_area "forum", "description", :class => "textarea", :style => "width: 100%"
14
14
 
15
15
  - form.edit_group do
16
- - if @group && @forum.new_record?
17
- - @forum.groups = [@group]
18
-
19
- .set
20
- %p
21
- = t('allowed_groups')
22
- - Group.find(:all).each do |group|
23
- = check_box_tag "forum[group_ids][]", group.id, @forum.has_group?(group), :id => "forum_group_#{group.id}"
24
- %label.checkbox{:for => "forum_group_#{group.id}"}
25
- = group.name
16
+ = render :partial => "admin/groups/edit_access", :locals => {:groupee => @forum}
26
17
 
27
18
  = javascript_tag "$('forum_name').activate()"
28
19
 
@@ -1,5 +1,5 @@
1
1
  module RadiantForumExtension
2
- VERSION = '3.0.2'
2
+ VERSION = '3.0.3'
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"
@@ -4,24 +4,24 @@ describe "Forum Tags" do
4
4
  dataset :forums
5
5
 
6
6
  let(:page){ pages(:commentable) }
7
+ let(:reader){ readers(:normal) }
7
8
 
8
9
  describe "r:forum:topic tags" do
9
10
  let(:topic){ topics(:older) }
10
11
  let(:sticky){ topics(:sticky) }
11
12
  let(:on_date){ I18n.l(topic.created_at, :format => :standard) }
12
13
  let(:sticky_date){ I18n.l(sticky.created_at, :format => :standard) }
13
-
14
14
  subject { page }
15
15
  it { should render(%{<r:forum:topic id="#{topic.id}"><r:forum:topic:name /></r:forum:topic>}).as(topic.name) }
16
16
  it { should render(%{<r:forum:topic id="#{topic.id}"><r:forum:topic:body /></r:forum:topic>}).as(topic.posts.first.body_html) }
17
17
  it { should render(%{<r:forum:topic id="#{topic.id}"><r:forum:topic:author /></r:forum:topic>}).as("Normal") }
18
18
  it { should render(%{<r:forum:topic id="#{topic.id}"><r:forum:topic:date /></r:forum:topic>}).as(on_date) }
19
19
  it { should render(%{<r:forum:topic id="#{topic.id}"><r:forum:topic:url /></r:forum:topic>}).as("/forum/forums/#{topic.forum.id}/topics/#{topic.id}") }
20
- it { should render(%{<r:forum:topic id="#{topic.id}"><r:forum:topic:context /></r:forum:topic>}).as(%{reply from <a href="#{reader_url(reader_id(:normal))}">Normal</a>}) }
20
+ it { should render(%{<r:forum:topic id="#{topic.id}"><r:forum:topic:context /></r:forum:topic>}).as(%{reply from <a href="/directory/readers/#{reader.id}">Normal</a>}) }
21
21
  it { should render(%{<r:forum:topic id="#{topic.id}"><r:forum:topic:body /></r:forum:topic>}).as("<p>original topic message</p>") }
22
22
  it { should render(%{<r:forum:topic id="#{topic.id}"><r:forum:topic:link /></r:forum:topic>}).as(%{<a href="/forum/forums/#{topic.forum.id}/topics/#{topic.id}">#{topic.name}</a>}) }
23
- it { should render(%{<r:forum:topic id="#{topic.id}"><r:forum:topic:summary /></r:forum:topic>}).as(%{<li><a href="/forum/forums/#{topic.forum.id}/topics/#{topic.id}">#{topic.name}</a><br />reply from <a href=#{reader_url(reader_id(:normal))}">Normal</a></li>}) }
24
- it { should render(%{<r:forum:topic id="#{sticky.id}"><r:forum:topic:summary /></r:forum:topic>}).as(%{<li><a href="/forum/forums/#{sticky.forum.id}/topics/#{sticky.id}">#{sticky.name}</a><br />Started by <a href="#{reader_url(reader_id(:normal))}">Normal</a></li>}) }
23
+ it { should render(%{<r:forum:topic id="#{topic.id}"><r:forum:topic:summary /></r:forum:topic>}).as(%{<li><a href="/forum/forums/#{topic.forum.id}/topics/#{topic.id}">#{topic.name}</a><br />reply from <a href="/directory/readers/#{reader.id}">Normal</a></li>}) }
24
+ it { should render(%{<r:forum:topic id="#{sticky.id}"><r:forum:topic:summary /></r:forum:topic>}).as(%{<li><a href="/forum/forums/#{sticky.forum.id}/topics/#{sticky.id}">#{sticky.name}</a><br />Started by <a href="/directory/readers/#{reader.id}">Normal</a></li>}) }
25
25
  end
26
26
 
27
27
  describe "r:forum:post tags" do
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: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 2
10
- version: 3.0.2
9
+ - 3
10
+ version: 3.0.3
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-11 00:00:00 Z
18
+ date: 2011-10-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: radiant-reader-extension
@@ -233,7 +233,6 @@ files:
233
233
  - public/stylesheets/sass/admin/forum_dashboard.sass
234
234
  - public/stylesheets/sass/forum.sass
235
235
  - public/stylesheets/sass/gallery.sass
236
- - radiant-forum-extension-3.0.1.gem
237
236
  - radiant-forum-extension.gemspec
238
237
  - Rakefile
239
238
  - README.md
@@ -260,7 +259,7 @@ files:
260
259
  homepage: http://radiant.spanner.org/forum
261
260
  licenses: []
262
261
 
263
- post_install_message: "\n Add this to the Gemfile in your radiant project:\n\n gem 'radiant-forum-extension', '~> 3.0.2'\n\n "
262
+ post_install_message: "\n Add this to the Gemfile in your radiant project:\n\n gem 'radiant-forum-extension', '~> 3.0.3'\n\n "
264
263
  rdoc_options: []
265
264
 
266
265
  require_paths:
Binary file