radiant-reader-extension 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,6 @@
3
3
  %h3
4
4
  = t('reader_extension.dashboard.groups')
5
5
  %ul.groups
6
- - current_reader.groups.each do |group|
6
+ - current_reader.all_groups.each do |group|
7
7
  %li
8
8
  = link_to_group(group)
@@ -1,3 +1,5 @@
1
+ - with_children ||= false
2
+
1
3
  .group
2
4
  %h3
3
5
  = link_to group.name, group_url(group)
@@ -9,6 +11,6 @@
9
11
  %p
10
12
  = group.description
11
13
 
12
- - if group.children.any?
14
+ - if with_children && group.children.any?
13
15
  .indented
14
16
  = render :partial => 'groups/group', :collection => group.children
@@ -19,7 +19,6 @@
19
19
  = render :partial => 'shared/standard_reader_parts'
20
20
 
21
21
  - content_for :main do
22
- = render :partial => 'group', :collection => @groups
23
-
22
+ = render :partial => 'group', :collection => @groups, :locals => {:with_children => true}
24
23
 
25
24
  = yield :main
@@ -1,5 +1,5 @@
1
1
  module RadiantReaderExtension
2
- VERSION = '3.0.2'
2
+ VERSION = '3.0.3'
3
3
  SUMMARY = %q{Reader/viewer/visitor registration, login and access-control for Radiant CMS}
4
4
  DESCRIPTION = %q{Provides reader/member/user registration and management functions including password-reminder, group-based page access control and administrative email.}
5
5
  URL = "http://radiant.spanner.org/reader"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-reader-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
@@ -349,7 +349,7 @@ has_rdoc: true
349
349
  homepage: http://radiant.spanner.org/reader
350
350
  licenses: []
351
351
 
352
- post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-reader-extension', :version => '~> 3.0.2'\n\n and if you haven't already, remember to enable ActionMailer in your\n project's config/environment.rb.\n "
352
+ post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-reader-extension', :version => '~> 3.0.3'\n\n and if you haven't already, remember to enable ActionMailer in your\n project's config/environment.rb.\n "
353
353
  rdoc_options: []
354
354
 
355
355
  require_paths: