radiant-reader-extension 1.3.13 → 2.0.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/Rakefile +0 -19
- data/app/controllers/admin/group_invitations_controller.rb +78 -0
- data/app/controllers/admin/groups_controller.rb +8 -0
- data/app/controllers/admin/memberships_controller.rb +42 -0
- data/app/controllers/admin/messages_controller.rb +8 -3
- data/app/controllers/admin/permissions_controller.rb +42 -0
- data/app/controllers/admin/reader_configuration_controller.rb +0 -1
- data/app/controllers/admin/readers_controller.rb +1 -1
- data/app/controllers/password_resets_controller.rb +5 -5
- data/app/controllers/reader_action_controller.rb +13 -33
- data/app/controllers/reader_activations_controller.rb +4 -8
- data/app/controllers/reader_sessions_controller.rb +15 -26
- data/app/controllers/readers_controller.rb +26 -9
- data/app/helpers/reader_helper.rb +45 -17
- data/app/models/group.rb +80 -0
- data/app/models/membership.rb +13 -0
- data/app/models/message.rb +10 -7
- data/app/models/permission.rb +11 -0
- data/app/models/reader.rb +79 -35
- data/app/models/reader_notifier.rb +1 -0
- data/app/views/admin/group_invitations/new.html.haml +31 -0
- data/app/views/admin/group_invitations/preview.html.haml +58 -0
- data/app/views/admin/groups/_add_readers.html.haml +0 -0
- data/app/views/admin/groups/_form.html.haml +26 -0
- data/app/views/admin/groups/_list_head.html.haml +12 -0
- data/app/views/admin/groups/edit.html.haml +9 -0
- data/app/views/admin/groups/index.html.haml +44 -0
- data/app/views/admin/groups/new.html.haml +7 -0
- data/app/views/admin/groups/remove.html.haml +31 -0
- data/app/views/admin/groups/show.html.haml +74 -0
- data/app/views/admin/memberships/_reader.html.haml +9 -0
- data/app/views/admin/messages/_function.haml +31 -0
- data/app/views/admin/messages/_list_function.haml +7 -3
- data/app/views/admin/messages/_list_notes.html.haml +9 -0
- data/app/views/admin/messages/_message_description.html.haml +5 -1
- data/app/views/admin/messages/_message_group.html.haml +5 -0
- data/app/views/admin/messages/index.haml +4 -4
- data/app/views/admin/messages/show.html.haml +15 -15
- data/app/views/admin/pages/_listed.html.haml +16 -0
- data/app/views/admin/pages/_page_groups.html.haml +13 -0
- data/app/views/admin/permissions/_page.html.haml +24 -0
- data/app/views/admin/reader_configuration/edit.html.haml +3 -1
- data/app/views/admin/reader_configuration/show.html.haml +4 -2
- data/app/views/admin/readers/_form.html.haml +7 -7
- data/app/views/admin/readers/_password_fields.html.haml +6 -6
- data/app/views/admin/readers/_reader_groups.html.haml +7 -0
- data/app/views/admin/readers/edit.html.haml +2 -1
- data/app/views/admin/readers/index.html.haml +5 -2
- data/app/views/password_resets/create.html.haml +13 -8
- data/app/views/password_resets/edit.html.haml +26 -26
- data/app/views/password_resets/new.html.haml +28 -25
- data/app/views/reader_activations/_activation_required.haml +2 -2
- data/app/views/reader_activations/show.html.haml +11 -13
- data/app/views/reader_sessions/_login_form.html.haml +13 -12
- data/app/views/reader_sessions/new.html.haml +6 -8
- data/app/views/readers/_controls.html.haml +11 -9
- data/app/views/readers/_form.html.haml +32 -33
- data/app/views/readers/_memberships.html.haml +11 -0
- data/app/views/readers/edit.html.haml +11 -11
- data/app/views/readers/index.html.haml +9 -10
- data/app/views/readers/login.html.haml +10 -12
- data/app/views/readers/new.html.haml +11 -13
- data/app/views/readers/permission_denied.html.haml +7 -7
- data/app/views/readers/show.html.haml +7 -8
- data/app/views/shared/_standard_reader_parts.html.haml +14 -0
- data/app/views/site/not_allowed.html.haml +4 -0
- data/config/initializers/authlogic_connect_config.rb +12 -0
- data/config/initializers/radiant_config.rb +1 -0
- data/config/locales/en.yml +217 -177
- data/config/routes.rb +5 -0
- data/db/migrate/20090921125654_group_messages.rb +35 -0
- data/db/migrate/20091120083119_groups_public.rb +11 -0
- data/db/migrate/20110214101339_multiple_ownership.rb +13 -0
- data/lib/controller_extensions.rb +1 -1
- data/lib/group_tags.rb +65 -0
- data/lib/grouped_model.rb +125 -0
- data/lib/grouped_page.rb +39 -0
- data/lib/message_tags.rb +183 -0
- data/lib/radiant-reader-extension.rb +8 -0
- data/lib/reader_admin_ui.rb +29 -6
- data/lib/reader_tags.rb +7 -183
- data/lib/sanitize/config/generous.rb +49 -0
- data/lib/site_controller_extensions.rb +35 -0
- data/public/javascripts/reader.js +1 -1
- data/public/stylesheets/sass/reader.sass +18 -8
- data/radiant-reader-extension.gemspec +30 -176
- data/reader_extension.rb +31 -23
- data/spec/controllers/admin/messages_controller_spec.rb +1 -1
- data/spec/controllers/admin/readers_controller_spec.rb +0 -1
- data/spec/controllers/password_resets_controller_spec.rb +1 -1
- data/spec/controllers/reader_activations_controller_spec.rb +1 -1
- data/spec/controllers/readers_controller_spec.rb +67 -40
- data/spec/controllers/site_controller_spec.rb +63 -0
- data/spec/datasets/readers_dataset.rb +100 -11
- data/spec/models/group_spec.rb +46 -0
- data/spec/models/message_spec.rb +40 -15
- data/spec/models/page_spec.rb +81 -0
- data/spec/models/reader_notifier_spec.rb +1 -1
- data/spec/models/reader_spec.rb +17 -12
- metadata +99 -67
- data/.gitignore +0 -2
- data/VERSION +0 -1
- data/app/views/readers/_standard_parts.html.haml +0 -23
- data/spec/datasets/messages_dataset.rb +0 -49
- data/spec/datasets/reader_layouts_dataset.rb +0 -26
- data/spec/datasets/reader_sites_dataset.rb +0 -10
@@ -1,30 +1,33 @@
|
|
1
|
-
-
|
1
|
+
- content_for :breadcrumbs do
|
2
|
+
= link_to t('reader_extension.home').titlecase, '/'
|
3
|
+
>
|
4
|
+
= t('reader_extension.reset_password').titlecase
|
2
5
|
|
3
|
-
|
4
|
-
=t('
|
5
|
-
%strong
|
6
|
-
=t('password_reset_reassurance')
|
7
|
-
|
8
|
-
- if @error
|
9
|
-
%p.haserror
|
10
|
-
= t(@error)
|
6
|
+
- content_for :title do
|
7
|
+
= t('reader_extension.reset_password').titlecase
|
11
8
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
%
|
16
|
-
|
17
|
-
= t('your_email')
|
18
|
-
%br
|
19
|
-
= text_field_tag 'email', email, :class => 'titular'
|
9
|
+
- content_for :form do
|
10
|
+
%p
|
11
|
+
=t('reader_extension.password_reset_instructions')
|
12
|
+
%strong
|
13
|
+
=t('reader_extension.password_reset_reassurance')
|
20
14
|
|
21
|
-
|
22
|
-
|
15
|
+
- if @error
|
16
|
+
%p.haserror
|
17
|
+
= t(@error)
|
23
18
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
19
|
+
.password_form
|
20
|
+
- email = current_reader.email if current_reader
|
21
|
+
- form_tag password_reset_path, :class => 'friendly' do
|
22
|
+
%p
|
23
|
+
%label{:for => "email"}
|
24
|
+
= t('reader_extension.your_email')
|
25
|
+
%br
|
26
|
+
= text_field_tag 'email', email, :class => 'titular'
|
28
27
|
|
29
|
-
|
30
|
-
|
28
|
+
%p
|
29
|
+
= submit_tag t('reader_extension.send_reset_button')
|
30
|
+
|
31
|
+
= render :partial => 'shared/standard_reader_parts'
|
32
|
+
|
33
|
+
= yield :form
|
@@ -1,13 +1,11 @@
|
|
1
|
-
= render :partial => 'readers/standard_parts'
|
2
|
-
|
3
1
|
-content_for :instructions do
|
4
2
|
- if current_reader && current_reader.activated?
|
5
3
|
%p
|
6
|
-
= t("activation_complete")
|
4
|
+
= t("reader_extension.activation_complete")
|
7
5
|
|
8
6
|
- if session[:return_to]
|
9
7
|
%p
|
10
|
-
= link_to t("return_to_page"), session[:return_to]
|
8
|
+
= link_to t("reader_extension.return_to_page"), session[:return_to]
|
11
9
|
|
12
10
|
- else
|
13
11
|
%div.activation
|
@@ -15,23 +13,23 @@
|
|
15
13
|
%p.errornotice
|
16
14
|
= @error
|
17
15
|
%p
|
18
|
-
= t('thanks_and_activation_instructions')
|
16
|
+
= t('reader_extension.thanks_and_activation_instructions')
|
19
17
|
|
20
18
|
%p
|
21
|
-
= link_to(t("resend_activation"), new_reader_activation_url) + '.'
|
19
|
+
= link_to(t("reader_extension.resend_activation"), new_reader_activation_url) + '.'
|
22
20
|
|
23
21
|
- content_for :breadcrumbs do
|
24
|
-
= link_to t('Home'), '/'
|
22
|
+
= link_to t('reader_extension.Home'), '/'
|
25
23
|
>
|
26
|
-
= t('activate_account')
|
24
|
+
= t('reader_extension.activate_account')
|
27
25
|
|
28
26
|
- content_for :title do
|
29
27
|
- if current_reader && current_reader.activated?
|
30
|
-
= t('hello').titlecase
|
28
|
+
= t('reader_extension.hello').titlecase
|
31
29
|
= current_reader.name
|
32
30
|
- else
|
33
|
-
= t('activation_sent')
|
34
|
-
|
35
|
-
|
31
|
+
= t('reader_extension.activation_sent')
|
32
|
+
|
33
|
+
= render :partial => 'shared/standard_reader_parts'
|
36
34
|
|
37
|
-
= yield :instructions
|
35
|
+
= yield :instructions
|
@@ -6,34 +6,35 @@
|
|
6
6
|
- cssclass = "compact friendly"
|
7
7
|
- cssclass << " inline" if @inline
|
8
8
|
- form_for @reader_session, :url => reader_session_path, :html => {:class => cssclass} do |f|
|
9
|
+
%input{:type => :hidden, :name => :authentication_type, :value => :session}
|
9
10
|
|
10
11
|
- unless no_title
|
11
12
|
%h2
|
12
13
|
- if purpose
|
13
14
|
= purpose + ','
|
14
|
-
= t('please')
|
15
|
+
= t('reader_extension.please')
|
15
16
|
- else
|
16
|
-
= t('please').titlecase
|
17
|
-
= t('log_in')
|
17
|
+
= t('reader_extension.please').titlecase
|
18
|
+
= t('reader_extension.log_in')
|
18
19
|
- if Radiant::Config['reader.allow_registration?']
|
19
|
-
= t('or')
|
20
|
-
= link_to t('register'), new_reader_url
|
20
|
+
= t('reader_extension.or')
|
21
|
+
= link_to t('reader_extension.register'), new_reader_url
|
21
22
|
|
22
23
|
- if @error
|
23
24
|
%p.haserror
|
24
|
-
= t('login_unknown')
|
25
|
+
= t('reader_extension.login_unknown')
|
25
26
|
%br
|
26
|
-
= link_to t('forgotten_password'), new_password_reset_url
|
27
|
+
= link_to t('reader_extension.forgotten_password'), new_password_reset_url
|
27
28
|
|
28
29
|
%p{ :class => @reader_session.errors.on(:login) ? 'haserror' : '' }
|
29
30
|
%label{:for => "reader_session_login"}
|
30
|
-
= t('login_or_email')
|
31
|
+
= t('reader_extension.login_or_email')
|
31
32
|
%br
|
32
33
|
= f.text_field :login, :class => 'login'
|
33
34
|
|
34
35
|
%p{ :class => @reader_session.errors.on(:password) ? 'haserror' : '' }
|
35
36
|
%label{:for => "reader_session_password"}
|
36
|
-
= t('password').titlecase
|
37
|
+
= t('reader_extension.password').titlecase
|
37
38
|
%br
|
38
39
|
= f.password_field :password, :class => 'login'
|
39
40
|
|
@@ -41,13 +42,13 @@
|
|
41
42
|
= f.submit ' Log in '
|
42
43
|
= f.check_box :remember_me
|
43
44
|
%label.paranthetical{:for => "reader_session_remember_me"}
|
44
|
-
= t('remember_me')
|
45
|
+
= t('reader_extension.remember_me')
|
45
46
|
|
46
47
|
%ul
|
47
48
|
- if Radiant::Config['reader.allow_registration?']
|
48
49
|
%li
|
49
50
|
= link_to "registration".titlecase, new_reader_url
|
50
|
-
= t('is_free_and_quick')
|
51
|
+
= t('reader_extension.is_free_and_quick')
|
51
52
|
%li
|
52
|
-
= link_to t("forgotten_password"), new_password_reset_url
|
53
|
+
= link_to t("reader_extension.forgotten_password"), new_password_reset_url
|
53
54
|
|
@@ -1,23 +1,21 @@
|
|
1
|
-
= render :partial => 'readers/standard_parts'
|
2
|
-
|
3
1
|
- content_for :login do
|
4
2
|
- if @message
|
5
3
|
%p
|
6
4
|
= @message
|
7
5
|
- else
|
8
6
|
%p
|
9
|
-
= t('log_in_or_register')
|
7
|
+
= t('reader_extension.log_in_or_register')
|
10
8
|
|
11
9
|
= render :partial => 'login_form', :locals => {:no_title => true}
|
12
10
|
|
13
11
|
- content_for :breadcrumbs do
|
14
|
-
= link_to t('home').titlecase, '/'
|
12
|
+
= link_to t('reader_extension.home').titlecase, '/'
|
15
13
|
>
|
16
|
-
= t('log_in').titlecase
|
14
|
+
= t('reader_extension.log_in').titlecase
|
17
15
|
|
18
16
|
- content_for :title do
|
19
|
-
= t('please_log_in').titlecase
|
20
|
-
|
17
|
+
= t('reader_extension.please_log_in').titlecase
|
21
18
|
|
19
|
+
= render :partial => 'shared/standard_reader_parts'
|
22
20
|
|
23
|
-
= yield :login
|
21
|
+
= yield :login
|
@@ -1,13 +1,15 @@
|
|
1
1
|
- if !current_reader
|
2
|
-
= link_to t('navigation.log_in'), reader_login_url
|
3
|
-
= link_to t('navigation.register'), new_reader_url
|
4
|
-
- elsif !current_reader.activated?
|
5
|
-
= link_to t('navigation.activate'), reader_activation_url
|
2
|
+
= link_to t('reader_extension.navigation.log_in'), reader_login_url
|
3
|
+
= link_to t('reader_extension.navigation.register'), new_reader_url
|
6
4
|
- else
|
7
|
-
|
8
|
-
|
9
|
-
- if current_reader.
|
10
|
-
= link_to t('navigation.
|
11
|
-
|
5
|
+
%strong
|
6
|
+
= link_to t('reader_extension.navigation.greeting', :name => current_reader.name), reader_profile_url
|
7
|
+
- if !current_reader.activated?
|
8
|
+
= link_to t('reader_extension.navigation.activate'), reader_activation_url
|
9
|
+
- else
|
10
|
+
= link_to t('reader_extension.navigation.account'), reader_account_url
|
11
|
+
- if current_reader.is_user?
|
12
|
+
= link_to t('reader_extension.navigation.admin'), admin_pages_url
|
13
|
+
= link_to t('reader_extension.navigation.log_out'), reader_logout_url
|
12
14
|
|
13
15
|
|
@@ -2,96 +2,95 @@
|
|
2
2
|
- check_password ||= false
|
3
3
|
|
4
4
|
- form_for reader, :html => {:class => 'friendly'} do |f|
|
5
|
+
%input{:type => :hidden, :name => :authentication_type, :value => :user}
|
6
|
+
|
5
7
|
- unless @reader.errors.empty?
|
6
8
|
%p.has_error
|
7
|
-
= t('sorry').titlecase
|
8
|
-
= t('form_problem') + '.'
|
9
|
-
= t('affected_fields_highlighted')
|
9
|
+
= t('reader_extension.sorry').titlecase
|
10
|
+
= t('reader_extension.form_problem') + '.'
|
11
|
+
= t('reader_extension.affected_fields_highlighted')
|
10
12
|
- else
|
11
13
|
%p
|
12
|
-
= t('bold_required')
|
14
|
+
= t('reader_extension.bold_required')
|
13
15
|
|
14
16
|
%p
|
15
|
-
= f.label :name,
|
17
|
+
= f.label :name, nil, :class => 'required'
|
16
18
|
%br
|
17
19
|
= f.text_field :name, :class => 'standard'
|
18
|
-
%span.formnote= t('form_notes.name')
|
20
|
+
%span.formnote= t('reader_extension.form_notes.name')
|
19
21
|
|
20
22
|
- if Radiant::Config['reader.use_honorifics?']
|
21
23
|
%p
|
22
|
-
= f.label :honorific,
|
24
|
+
= f.label :honorific, nil, :class => 'optional'
|
23
25
|
%br
|
24
26
|
= f.text_field :honorific, :class => 'standard'
|
25
|
-
%span.formnote= t('form_notes.honorific')
|
27
|
+
%span.formnote= t('reader_extension.form_notes.honorific')
|
26
28
|
|
27
|
-
- if reader.new_record?
|
29
|
+
- if reader.new_record?
|
28
30
|
%p
|
29
|
-
= f.label reader.email_field, t('label.reader.email'), :class => 'required'
|
31
|
+
= f.label reader.email_field, t('reader_extension.label.reader.email'), :class => 'required'
|
30
32
|
%br
|
31
33
|
= 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')
|
34
|
+
%span.formnote= t('reader_extension.form_notes.email')
|
33
35
|
.innocuous
|
34
36
|
%p
|
35
|
-
=f.label :email,
|
37
|
+
=f.label :email, nil, :class => 'required'
|
36
38
|
%br
|
37
|
-
= f.text_field :email, :class => 'standard'
|
38
|
-
%span.formnote= t('spam_trap')
|
39
|
+
= f.text_field :email, :class => 'standard', :value => ""
|
40
|
+
%span.formnote= t('reader_extension.spam_trap')
|
39
41
|
|
40
42
|
- else
|
41
43
|
%p
|
42
|
-
= f.label :email,
|
44
|
+
= f.label :email, nil, :class => 'required'
|
43
45
|
%br
|
44
46
|
= f.text_field :email, :class => 'standard'
|
45
|
-
%span.formnote= t('form_notes.email')
|
47
|
+
%span.formnote= t('reader_extension.form_notes.email')
|
46
48
|
|
47
49
|
%p
|
48
|
-
= f.label :login,
|
50
|
+
= f.label :login, nil, :class => 'optional'
|
49
51
|
%br
|
50
52
|
= f.text_field :login, :class => 'standard'
|
51
|
-
%span.formnote= t('form_notes.login')
|
53
|
+
%span.formnote= t('reader_extension.form_notes.login')
|
52
54
|
|
53
55
|
- if reader.new_record?
|
54
56
|
%p
|
55
|
-
= f.label :password,
|
57
|
+
= f.label :password, nil, :class => 'required'
|
56
58
|
%br
|
57
59
|
= f.password_field :password, :class => 'standard', :autocomplete => 'off'
|
58
|
-
%span.formnote= t('form_notes.new_password')
|
60
|
+
%span.formnote= t('reader_extension.form_notes.new_password')
|
59
61
|
|
60
62
|
%p
|
61
|
-
= f.label :password_confirmation,
|
63
|
+
= f.label :password_confirmation, nil, :class => 'required'
|
62
64
|
%br
|
63
65
|
= f.password_field :password_confirmation, :class => 'standard', :autocomplete => 'off'
|
64
66
|
|
65
67
|
- else
|
66
68
|
.display_password
|
67
69
|
%p
|
68
|
-
= f.label :password,
|
70
|
+
= f.label :password, nil, :class => 'optional'
|
69
71
|
%span.password
|
70
72
|
•••••
|
71
|
-
%span.formnote= link_to t('change_password'), '#', :class => 'toggle', :rel => ".display_password, .new_password"
|
73
|
+
%span.formnote= link_to t('reader_extension.change_password'), '#', :class => 'toggle', :rel => ".display_password, .new_password"
|
72
74
|
|
73
75
|
.new_password.hidden
|
74
76
|
%p
|
75
|
-
= f.label :password, t('new_password'), :class => 'required'
|
77
|
+
= f.label :password, t('reader_extension.new_password'), :class => 'required'
|
76
78
|
%br
|
77
79
|
= f.password_field :password, :class => 'standard', :autocomplete => 'off'
|
78
|
-
%span.formnote= t('form_notes.new_password')
|
80
|
+
%span.formnote= t('reader_extension.form_notes.new_password')
|
79
81
|
%p
|
80
|
-
= f.label :password_confirmation, t('confirm_new_password'), :class => 'required'
|
82
|
+
= f.label :password_confirmation, t('reader_extension.confirm_new_password'), :class => 'required'
|
81
83
|
%br
|
82
84
|
= f.password_field :password_confirmation, :class => 'standard', :autocomplete => 'off'
|
83
85
|
|
84
|
-
- if Radiant::Config['reader.
|
86
|
+
- if Radiant::Config['reader.get_profile?']
|
85
87
|
%p
|
86
|
-
= f.label :description,
|
88
|
+
= f.label :description, nil, :class => 'optional'
|
87
89
|
%br
|
88
90
|
= f.text_area :description, :class => 'standard', :rows => 8
|
89
|
-
%span.formnote= t('form_notes.description')
|
90
|
-
|
91
|
-
- @edit_partials.each do |partial|
|
92
|
-
= render :partial => partial, :locals => {:reader => @reader}
|
91
|
+
%span.formnote= t('reader_extension.form_notes.description')
|
93
92
|
|
94
93
|
%p
|
95
|
-
= submit_tag reader.new_record? ? t('create_account') : t("update_account")
|
94
|
+
= submit_tag reader.new_record? ? t('reader_extension.create_account') : t("reader_extension.update_account")
|
96
95
|
or
|
97
96
|
= link_to 'cancel', request.referer
|
@@ -0,0 +1,11 @@
|
|
1
|
+
- if Group.subscribable.any?
|
2
|
+
%h3
|
3
|
+
= t('reader_extension.subscriptions').titlecase
|
4
|
+
%p
|
5
|
+
- Group.subscribable.each do |group|
|
6
|
+
= check_box_tag "reader[group_ids][]", group.id, @reader.is_in?(group), :id => "reader_group_#{group.id}"
|
7
|
+
%label{:for => "reader_group_#{group.id}"}
|
8
|
+
= group.name
|
9
|
+
%span.formnote
|
10
|
+
= group.invitation
|
11
|
+
%br
|
@@ -1,27 +1,27 @@
|
|
1
|
-
= render :partial => 'readers/standard_parts'
|
2
|
-
|
3
1
|
- content_for :introduction do
|
4
2
|
%p
|
5
|
-
= t("hello").titlecase
|
3
|
+
= t("reader_extension.hello").titlecase
|
6
4
|
= link_to(@reader.name, reader_url(@reader)) + '.'
|
7
|
-
= t('preferences_intro')
|
5
|
+
= t('reader_extension.preferences_intro')
|
8
6
|
|
9
7
|
- content_for :form do
|
8
|
+
%pre
|
9
|
+
= @reader.errors.full_messages
|
10
10
|
= render :partial => 'form', :locals => {:reader => @reader}
|
11
11
|
%p
|
12
12
|
= standard_gravatar_for(@reader, 'http://gravatar.com/site/login')
|
13
|
-
= link_to t('change_gravatar'), "http://gravatar.com/site/login/"
|
13
|
+
= link_to t('reader_extension.change_gravatar'), "http://gravatar.com/site/login/"
|
14
14
|
|
15
15
|
- content_for :breadcrumbs do
|
16
|
-
= link_to t('home').titlecase, '/'
|
16
|
+
= link_to t('reader_extension.home').titlecase, '/'
|
17
17
|
>
|
18
|
-
= link_to t('you').titlecase, '/readers/me'
|
18
|
+
= link_to t('reader_extension.you').titlecase, '/readers/me'
|
19
19
|
>
|
20
|
-
= t('account_settings')
|
20
|
+
= t('reader_extension.account_settings')
|
21
21
|
|
22
22
|
- content_for :title do
|
23
|
-
= t('account_settings')
|
24
|
-
|
23
|
+
= t('reader_extension.account_settings')
|
25
24
|
|
25
|
+
= render :partial => 'shared/standard_reader_parts'
|
26
26
|
|
27
|
-
= yield :form
|
27
|
+
= yield :form
|
@@ -1,7 +1,6 @@
|
|
1
|
-
= render :partial => 'readers/standard_parts'
|
2
|
-
|
3
1
|
- content_for :introduction do
|
4
|
-
|
2
|
+
%p
|
3
|
+
=t('reader_extension.readers_introduction')
|
5
4
|
|
6
5
|
- content_for :list do
|
7
6
|
#readers
|
@@ -17,23 +16,23 @@
|
|
17
16
|
= link_to standard_gravatar_for(reader), reader_url(reader), {:title => reader.name}
|
18
17
|
= link_to reader.name, reader_url(reader)
|
19
18
|
%p.context
|
20
|
-
= t("joined_on")
|
19
|
+
= t("reader_extension.joined_on")
|
21
20
|
= l(reader.created_at, :format => :date) + '.'
|
22
|
-
- @index_partials.each do |partial|
|
23
|
-
= render :partial => partial, :locals => {:reader => reader}
|
24
21
|
|
25
22
|
- content_for :pagination do
|
26
|
-
= pagination_and_summary_for(@readers, t('person'))
|
23
|
+
= pagination_and_summary_for(@readers, t('reader_extension.person'))
|
27
24
|
|
28
25
|
- content_for :breadcrumbs do
|
29
|
-
= link_to t('home').titlecase, '/'
|
26
|
+
= link_to t('reader_extension.home').titlecase, '/'
|
30
27
|
>
|
31
|
-
= t('people').titlecase
|
28
|
+
= t('reader_extension.people').titlecase
|
32
29
|
|
33
30
|
- content_for :title do
|
34
|
-
= t('people').titlecase
|
31
|
+
= t('reader_extension.people').titlecase
|
35
32
|
|
33
|
+
= render :partial => 'shared/standard_reader_parts'
|
36
34
|
|
37
35
|
= yield :pagination if @readers.previous_page
|
38
36
|
= yield :list
|
39
37
|
= yield :pagination if @readers.next_page
|
38
|
+
|
@@ -1,16 +1,14 @@
|
|
1
|
-
= render :partial => 'readers/standard_parts'
|
2
|
-
|
3
|
-
%div.login_form
|
4
|
-
%h1
|
5
|
-
= t('log_in').titlecase
|
6
|
-
|
7
|
-
= render :partial => 'reader_sessions/login_form', :locals => {:backto => @backto}
|
8
|
-
|
9
1
|
- content_for :breadcrumbs do
|
10
|
-
= link_to t('home').titlecase, '/'
|
2
|
+
= link_to t('reader_extension.home').titlecase, '/'
|
11
3
|
>
|
12
|
-
t('log_in').titlecase
|
4
|
+
t('reader_extension.log_in').titlecase
|
13
5
|
|
14
6
|
- content_for :title do
|
15
|
-
= t('log_in').titlecase
|
16
|
-
|
7
|
+
= t('reader_extension.log_in').titlecase
|
8
|
+
|
9
|
+
= render :partial => 'shared/standard_reader_parts'
|
10
|
+
|
11
|
+
%div.login_form
|
12
|
+
%h1
|
13
|
+
= t('reader_extension.log_in').titlecase
|
14
|
+
= render :partial => 'reader_sessions/login_form', :locals => {:backto => @backto}
|
@@ -1,35 +1,33 @@
|
|
1
|
-
= render :partial => 'readers/standard_parts'
|
2
|
-
|
3
1
|
- content_for :introduction do
|
4
2
|
%p
|
5
|
-
= t('please_register')
|
3
|
+
= t('reader_extension.please_register')
|
6
4
|
|
7
5
|
- content_for :form do
|
8
6
|
= render :partial => 'form'
|
9
7
|
|
10
8
|
- content_for :notes do
|
11
9
|
%h3
|
12
|
-
= t('notes').titlecase
|
10
|
+
= t('reader_extension.notes').titlecase
|
13
11
|
%ul.friendly
|
14
12
|
%li
|
15
|
-
= t('confirming_email')
|
13
|
+
= t('reader_extension.confirming_email')
|
16
14
|
%li
|
17
|
-
= t('getting_gravatar')
|
15
|
+
= t('reader_extension.getting_gravatar')
|
18
16
|
= link_to "gravatar.com" + '.', "http://www.gravatar.com"
|
19
17
|
- if Radiant::Config['reader.terms_url']
|
20
18
|
%li
|
21
|
-
= t('please_read_our')
|
22
|
-
= link_to t("terms_and_conditions"), Radiant::Config['reader.terms_url']
|
19
|
+
= t('reader_extension.please_read_our')
|
20
|
+
= link_to t("reader_extension.terms_and_conditions"), Radiant::Config['reader.terms_url']
|
23
21
|
|
24
22
|
- content_for :breadcrumbs do
|
25
|
-
= link_to t('home').titlecase, '/'
|
23
|
+
= link_to t('reader_extension.home').titlecase, '/'
|
26
24
|
>
|
27
|
-
= t('register').titlecase
|
25
|
+
= t('reader_extension.register').titlecase
|
28
26
|
|
29
27
|
- content_for :title do
|
30
|
-
= t('new_account')
|
31
|
-
|
28
|
+
= t('reader_extension.new_account')
|
32
29
|
|
30
|
+
= render :partial => 'shared/standard_reader_parts'
|
33
31
|
|
34
32
|
= yield :form
|
35
|
-
= yield :notes
|
33
|
+
= yield :notes
|
@@ -2,26 +2,26 @@
|
|
2
2
|
|
3
3
|
%div.apologetic
|
4
4
|
%p.haserror
|
5
|
-
= t('page_permission_denied')
|
5
|
+
= t('reader_extension.page_permission_denied')
|
6
6
|
|
7
7
|
- if current_reader
|
8
|
-
= t('if_mistake_see_admin')
|
8
|
+
= t('reader_extension.if_mistake_see_admin')
|
9
9
|
|
10
10
|
- content_for :title do
|
11
|
-
= t('sorry_access_denied')
|
11
|
+
= t('reader_extension.sorry_access_denied')
|
12
12
|
|
13
13
|
- else
|
14
|
-
= t('please_log_in') + '.'
|
14
|
+
= t('reader_extension.please_log_in') + '.'
|
15
15
|
|
16
16
|
- content_for :title do
|
17
|
-
= t('please_log_in')
|
17
|
+
= t('reader_extension.please_log_in')
|
18
18
|
|
19
19
|
- unless current_reader
|
20
20
|
= render :partial => 'reader_sessions/login_form'
|
21
21
|
|
22
22
|
- content_for :breadcrumbs do
|
23
|
-
= link_to t('home').titlecase, '/'
|
23
|
+
= link_to t('reader_extension.home').titlecase, '/'
|
24
24
|
>
|
25
|
-
= t('access_denied')
|
25
|
+
= t('reader_extension.access_denied')
|
26
26
|
|
27
27
|
|
@@ -1,27 +1,26 @@
|
|
1
|
-
= render :partial => 'readers/standard_parts'
|
2
1
|
|
3
2
|
- content_for :description do
|
4
3
|
- if @reader.description.blank?
|
5
4
|
%p
|
6
|
-
= t('no_description')
|
5
|
+
= t('reader_extension.no_description')
|
7
6
|
- else
|
8
|
-
=
|
7
|
+
= clean_html @reader.description
|
9
8
|
|
10
9
|
- @show_partials.each do |partial|
|
11
10
|
= render :partial => partial, :locals => {:reader => @reader}
|
12
11
|
|
13
12
|
- content_for :breadhead do
|
14
|
-
= link_to t('readers').titlecase
|
15
|
-
=
|
13
|
+
= link_to t('reader_extension.readers').titlecase, readers_url
|
14
|
+
= t('reader_extension.separator')
|
16
15
|
|
17
16
|
- content_for :title do
|
18
17
|
= @reader.name
|
19
18
|
|
20
19
|
- content_for :breadcrumbs do
|
21
20
|
= yield :breadhead
|
22
|
-
= t('separator')
|
21
|
+
= t('reader_extension.separator')
|
23
22
|
= yield :title
|
24
23
|
|
24
|
+
= render :partial => 'shared/standard_reader_parts'
|
25
25
|
|
26
|
-
|
27
|
-
= yield :description
|
26
|
+
= yield :description
|
@@ -0,0 +1,14 @@
|
|
1
|
+
- content_for :person do
|
2
|
+
- if @reader && !@reader.new_record?
|
3
|
+
= standard_gravatar_for(@reader)
|
4
|
+
|
5
|
+
- content_for :section_navigation do
|
6
|
+
= link_to t('reader_extension.navigation.readers'), readers_url, :class => 'section'
|
7
|
+
- if Radiant::Config['reader.help_url']
|
8
|
+
= link_to t('reader_extension.navigation.reader_help'), Radiant::Config['reader.help_url']
|
9
|
+
|
10
|
+
- content_for :controls do
|
11
|
+
= render :partial => 'readers/controls'
|
12
|
+
|
13
|
+
- content_for :signals do
|
14
|
+
= render :partial => 'readers/flasher'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# connections = {}
|
2
|
+
# %w{twitter facebook google yahoo myspace vimeo linked_in}.each do |provider|
|
3
|
+
# if Radiant.config["reader.#{provider}.key"]
|
4
|
+
# connect[provider] = {
|
5
|
+
# :key => Radiant.config["reader.#{provider}.key"],
|
6
|
+
# :secret => Radiant.config["reader.#{provider}.secret"],
|
7
|
+
# :label => provider.titlecase
|
8
|
+
# }
|
9
|
+
# end
|
10
|
+
# end
|
11
|
+
#
|
12
|
+
# AuthlogicConnect.config = connections
|
@@ -3,6 +3,7 @@ Radiant.config do |config|
|
|
3
3
|
reader.define 'allow_registration?', :default => true
|
4
4
|
reader.define 'require_confirmation?', :default => true
|
5
5
|
reader.define 'layout', :select_from => lambda { Layout.all.map(&:name) }, :allow_blank => false
|
6
|
+
reader.define 'get_profile?', :default => true
|
6
7
|
end
|
7
8
|
config.namespace('email') do |email|
|
8
9
|
email.define 'layout', :select_from => lambda { Layout.all.map(&:name) }, :allow_blank => true
|