radiant-reader-extension 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.3
1
+ 1.3.4
@@ -13,6 +13,7 @@ class ReaderActivationsController < ReaderActionController
13
13
  # .update activates the reader, if the token is correct
14
14
 
15
15
  def show
16
+ expires_now
16
17
  render
17
18
  end
18
19
 
@@ -22,6 +23,7 @@ class ReaderActivationsController < ReaderActionController
22
23
  @reader.send_activation_message
23
24
  flash[:notice] = t("activation_message_sent")
24
25
  end
26
+ expires_now
25
27
  render :action => 'show'
26
28
  end
27
29
 
@@ -34,6 +36,7 @@ class ReaderActivationsController < ReaderActionController
34
36
  else
35
37
  @error = t("please_check_message")
36
38
  flash[:error] = t("activation_failed")
39
+ expires_now
37
40
  render :action => 'show'
38
41
  end
39
42
  end
@@ -19,7 +19,7 @@
19
19
  = @error
20
20
  %p
21
21
  = t('thanks_and_activation_instructions')
22
- = link_to("resend_activation", new_reader_activation_url) + '.'
22
+ = link_to(t("resend_activation"), new_reader_activation_url) + '.'
23
23
  - unless current_reader
24
24
  = t('enter_email_for_reminder')
25
25
 
@@ -1,12 +1,12 @@
1
1
  - reader ||= @reader
2
2
  - check_password ||= false
3
3
 
4
- - form_for :reader, reader, :html => { :method => "put", :class => 'friendly'} do |f|
4
+ - form_for reader, :html => {:class => 'friendly'} do |f|
5
5
  - unless @reader.errors.empty?
6
- %p.errornote
7
- %strong
8
- = t('sorry').titlecase
9
- = t('form_problem') + '.'
6
+ %p.has_error
7
+ = t('sorry').titlecase
8
+ = t('form_problem') + '.'
9
+ = t('affected_fields_highlighted')
10
10
  - else
11
11
  %p
12
12
  = t('bold_required')
@@ -20,16 +20,16 @@
20
20
  - if Radiant::Config['reader.use_honorifics?']
21
21
  %p
22
22
  = f.label :honorific, t(:honorific), :class => 'optional'
23
- %span.formnote= t('form_notes.honorific')
24
23
  %br
25
24
  = f.text_field :honorific, :class => 'standard'
25
+ %span.formnote= t('form_notes.honorific')
26
26
 
27
27
  - if reader.new_record? && reader.email_field
28
28
  %p
29
29
  = f.label reader.email_field, t('label.reader.email'), :class => 'required'
30
- %span.formnote= t('form_notes.email')
31
30
  %br
32
31
  = text_field_tag reader.email_field, params[reader.email_field] || reader.email, :id => "reader_#{reader.email_field}", :class => 'standard'
32
+ %span.formnote= t('form_notes.email')
33
33
  .innocuous
34
34
  %p
35
35
  =f.label :email, t("dont_fill"), :class => 'required'
@@ -3,7 +3,7 @@
3
3
 
4
4
  - content_for :section_navigation do
5
5
  = link_to t('navigation.readers'), readers_url, :class => 'section'
6
- = link_to t('navigation.preferences'), reader_account_url
6
+ = link_to t('navigation.your_account'), reader_account_url
7
7
  - if Radiant::Config['reader.help_url']
8
8
  = link_to t('navigation.reader_help'), Radiant::Config['reader.help_url']
9
9
 
@@ -16,5 +16,5 @@
16
16
  %script{:src => path, :type => 'text/javascript'}
17
17
 
18
18
  - content_for :person do
19
- - if @reader
19
+ - if @reader && !@reader.new_record?
20
20
  = standard_gravatar_for(@reader)
@@ -1,16 +1,11 @@
1
1
  = render :partial => 'readers/standard_parts'
2
2
 
3
- - content_for :person do
4
- = standard_gravatar_for(@reader)
5
-
6
3
  - content_for :introduction do
7
4
  %p
8
5
  = t('please_register')
9
- = t('already_registered')
10
- = link_to t('log_in') + '.', reader_login_url
11
6
 
12
7
  - content_for :form do
13
- = render :partial => 'form', :locals => {:f => f}
8
+ = render :partial => 'form'
14
9
 
15
10
  - content_for :notes do
16
11
  %h3
@@ -8,6 +8,7 @@ en:
8
8
  activation_required_header: "Please check your email"
9
9
  activation_required_explanation: "You should have received a confirmation message containing a link that will activate your account."
10
10
  activation_sent: "Activation message sent"
11
+ affected_fields_highlighted: "The affected fields are highlighted below."
11
12
  already_active: "Your account is already active."
12
13
  already_logged_in: "You're already logged in!"
13
14
  already_registered: "If you've already registered, you should only need to"
@@ -85,7 +86,8 @@ en:
85
86
  profile: "Your profile"
86
87
  log_in: "Log in"
87
88
  log_out: "Log out"
88
- new_account: "Register"
89
+ your_account: "Your account"
90
+ new_account: "Create an account"
89
91
  new_password: "New password"
90
92
  new_password_instructions: "Please enter and confirm the new password you would like to use. It must be at least four characters long, nothing obvious or typical and ideally a mixture of numbers and letters."
91
93
  'no': "no"
@@ -120,7 +122,7 @@ en:
120
122
  registration: "registration"
121
123
  registration_disallowed: "Sorry. This site does not allow visitors to register"
122
124
  remember_me: "remember me"
123
- resend_activation: "resent activation messages"
125
+ resend_activation: "Resend activation message"
124
126
  reset_message_instructions: "Thank you. A message has been sent containing the instructions for setting a new password. Remember it hasn't changed yet and won't until you follow the instructions in the message. If you remember your old password, you can just carry on using it and ignore the reset message."
125
127
  reset_message_sent: "Password-reset instructions have been emailed to you"
126
128
  reset_not_found: "Password-reset code not found"
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-reader-extension}
8
- s.version = "1.3.3"
8
+ s.version = "1.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["spanner"]
data/reader_extension.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require_dependency 'application_controller'
2
2
 
3
3
  class ReaderExtension < Radiant::Extension
4
- version "1.3.3"
4
+ version "1.3.4"
5
5
  description "Provides reader/member/user registration and management functions"
6
6
  url "http://spanner.org/radiant/reader"
7
7
 
@@ -18,8 +18,6 @@ class ReaderExtension < Radiant::Extension
18
18
  UserActionObserver.instance.send :add_observer!, Reader
19
19
  UserActionObserver.instance.send :add_observer!, Message
20
20
 
21
-
22
-
23
21
  unless defined? admin.reader
24
22
  Radiant::AdminUI.send :include, ReaderAdminUI
25
23
  Radiant::AdminUI.load_reader_extension_regions
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: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 3
10
- version: 1.3.3
9
+ - 4
10
+ version: 1.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - spanner