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.
- data/config/locales/en.yml +1 -0
- data/lib/radiant-reader-extension.rb +1 -1
- data/lib/reader_tags.rb +10 -9
- metadata +4 -4
data/config/locales/en.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module RadiantReaderExtension
|
2
|
-
VERSION = '3.0.
|
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
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
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 +
|
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:
|
4
|
+
hash: 47
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
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.
|
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:
|