radiant-reader-extension 3.0.19 → 3.0.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -300,6 +300,7 @@ en:
300
300
  no_postal_address: "no address"
301
301
  nobody_to_list: "There is nobody to display here."
302
302
  none: "none"
303
+ not_you: "Not you?"
303
304
  notes: "notes"
304
305
  optional_login: "[login]"
305
306
  optional_phone: "[phone]"
@@ -1,5 +1,5 @@
1
1
  module RadiantReaderExtension
2
- VERSION = '3.0.19'
2
+ VERSION = '3.0.20'
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"
data/lib/reader_tags.rb CHANGED
@@ -111,19 +111,20 @@ module ReaderTags
111
111
  %{<div class="remote_controls"></div>}
112
112
  else
113
113
  if tag.locals.reader = Reader.current
114
- welcome = %{<span class="greeting">#{I18n.t('reader_extension.navigation.greeting', :name => tag.locals.reader.name)}</span> }
115
- links = []
114
+ welcome = %{<span class="greeting">#{I18n.t('reader_extension.navigation.greeting', :name => tag.locals.reader.name)}</span>. }
116
115
  if tag.locals.reader.activated?
117
- links << %{<a href="#{reader_dashboard_url}">#{I18n.t('reader_extension.navigation.dashboard')}</a>}
118
- links << %{<a href="#{reader_index_url}">#{I18n.t('reader_extension.navigation.directory')}</a>}
119
- links << %{<a href="#{reader_account}">#{I18n.t('reader_extension.navigation.account')}</a>}
120
- links << %{<a href="#{reader_edit_profile_url}">#{I18n.t('reader_extension.navigation.profile')}</a>}
121
- links << %{<a href="/admin">#{I18n.t('reader_extension.navigation.admin')}</a>} if tag.locals.reader.is_user?
122
- links << %{<a href="#{reader_logout_path}">#{I18n.t('reader_extension.navigation.log_out')}</a>}
116
+ welcome << %{
117
+ #{I18n.t('reader_extension.not_you')} <a href="#{reader_logout_path}">#{I18n.t('reader_extension.navigation.log_out')}</a>.
118
+ <br />
119
+ <a href="#{reader_dashboard_url}">#{I18n.t('reader_extension.navigation.dashboard')}</a> |
120
+ <a href="#{reader_index_url}">#{I18n.t('reader_extension.navigation.directory')}</a> |
121
+ <a href="#{reader_account_url}">#{I18n.t('reader_extension.navigation.account')}</a> |
122
+ <a href="#{reader_edit_profile_url}">#{I18n.t('reader_extension.navigation.profile')}</a>
123
+ }
123
124
  else
124
125
  welcome << I18n.t('reader_extension.navigation.activate')
125
126
  end
126
- %{<div class="controls"><p>} + welcome + '<br />' + links.join(%{<span class="separator"> | </span>}) + %{</p></div>}
127
+ %{<div class="controls"><p>} + welcome + %{</p></div>}
127
128
  elsif Radiant::Config['reader.allow_registration?']
128
129
  %{<div class="controls"><p>#{I18n.t('reader_extension.navigation.welcome_please_log_in', :login_url => reader_login_url, :register_url => new_reader_url)}</p></div>}
129
130
  end
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: 33
4
+ hash: 47
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 19
10
- version: 3.0.19
9
+ - 20
10
+ version: 3.0.20
11
11
  platform: ruby
12
12
  authors:
13
13
  - William Ross
@@ -356,7 +356,7 @@ files:
356
356
  homepage: http://radiant.spanner.org/reader
357
357
  licenses: []
358
358
 
359
- post_install_message: "\n Add this to your radiant project with a line in your Gemfile:\n\n gem 'radiant-reader-extension', '~> 3.0.19'\n\n and if you haven't already, remember to enable ActionMailer in your\n project's config/environment.rb.\n "
359
+ post_install_message: "\n Add this to your radiant project with a line in your Gemfile:\n\n gem 'radiant-reader-extension', '~> 3.0.20'\n\n and if you haven't already, remember to enable ActionMailer in your\n project's config/environment.rb.\n "
360
360
  rdoc_options: []
361
361
 
362
362
  require_paths: