radiant-reader-extension 0.9.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +15 -11
- data/VERSION +1 -1
- data/app/controllers/admin/messages_controller.rb +45 -6
- data/app/controllers/admin/reader_configuration_controller.rb +3 -0
- data/app/controllers/password_resets_controller.rb +8 -10
- data/app/controllers/reader_action_controller.rb +2 -2
- data/app/controllers/reader_activations_controller.rb +6 -7
- data/app/controllers/reader_sessions_controller.rb +3 -3
- data/app/controllers/readers_controller.rb +9 -10
- data/app/models/message.rb +2 -2
- data/app/models/message_function.rb +4 -0
- data/app/models/reader_notifier.rb +10 -7
- data/app/views/admin/messages/_form.html.haml +3 -1
- data/app/views/admin/messages/_list_function.haml +3 -0
- data/app/views/admin/messages/index.haml +42 -0
- data/app/views/admin/messages/preview.html.haml +1 -0
- data/app/views/admin/messages/show.html.haml +72 -0
- data/app/views/admin/reader_configuration/edit.html.haml +41 -0
- data/app/views/admin/reader_configuration/show.html.haml +46 -0
- data/app/views/admin/readers/_form.html.haml +2 -1
- data/app/views/admin/readers/index.html.haml +33 -2
- data/app/views/password_resets/create.html.haml +6 -9
- data/app/views/password_resets/edit.html.haml +26 -30
- data/app/views/password_resets/new.html.haml +10 -11
- data/app/views/reader_activations/show.html.haml +17 -26
- data/app/views/reader_sessions/_login_form.html.haml +19 -25
- data/app/views/reader_sessions/new.html.haml +17 -15
- data/app/views/readers/_flasher.html.haml +2 -2
- data/app/views/readers/_form.html.haml +30 -36
- data/app/views/readers/edit.html.haml +17 -19
- data/app/views/readers/index.html.haml +5 -7
- data/app/views/readers/login.html.haml +6 -5
- data/app/views/readers/new.html.haml +21 -20
- data/app/views/readers/permission_denied.html.haml +13 -9
- data/app/views/readers/show.html.haml +12 -9
- data/config/initializers/radiant_config.rb +12 -0
- data/config/locales/en.yml +147 -0
- data/config/routes.rb +5 -6
- data/db/migrate/20101019094714_message_sent_date.rb +11 -0
- data/lib/reader_admin_ui.rb +25 -10
- data/lib/reader_helper.rb +0 -7
- data/lib/reader_tags.rb +15 -10
- data/public/images/admin/delta.png +0 -0
- data/public/stylesheets/sass/admin/reader.sass +72 -81
- data/radiant-reader-extension.gemspec +13 -19
- data/reader_extension.rb +6 -7
- data/spec/controllers/admin/messages_controller_spec.rb +26 -9
- data/spec/controllers/readers_controller_spec.rb +1 -1
- data/spec/models/message_spec.rb +1 -2
- data/spec/models/reader_notifier_spec.rb +1 -2
- metadata +16 -22
- data/app/controllers/admin/reader_settings_controller.rb +0 -92
- data/app/helpers/admin/reader_settings_helper.rb +0 -36
- data/app/views/admin/reader_settings/_setting.html.haml +0 -24
- data/app/views/admin/reader_settings/edit.html.haml +0 -10
- data/app/views/admin/reader_settings/index.html.haml +0 -35
- data/app/views/admin/reader_settings/show.html.haml +0 -1
- data/app/views/admin/readers/_list_head.html.haml +0 -9
- data/app/views/admin/readers/_listed.html.haml +0 -22
- data/app/views/reader_activations/_activation_required.html.haml +0 -34
- data/app/views/reader_activations/_on_activation.html.haml +0 -4
- data/app/views/readers/create.html.haml +0 -28
- data/app/views/wrappers/_field_errors.html.haml +0 -5
- data/config/settings.rb +0 -9
- data/pkg/radiant-reader-extension-0.9.0.gem +0 -0
- data/public/images/admin/new-message.png +0 -0
- data/public/images/admin/new-reader.png +0 -0
- data/public/javascripts/admin/messages.js +0 -13
@@ -1,34 +0,0 @@
|
|
1
|
-
- purpose ||= false
|
2
|
-
- no_title ||= false
|
3
|
-
|
4
|
-
|
5
|
-
%div.activation_required
|
6
|
-
- unless no_title
|
7
|
-
%h2
|
8
|
-
- if purpose
|
9
|
-
= purpose + ','
|
10
|
-
please
|
11
|
-
- else
|
12
|
-
Please
|
13
|
-
activate your account
|
14
|
-
|
15
|
-
%p
|
16
|
-
Hello
|
17
|
-
= current_reader.name + '.'
|
18
|
-
- if current_reader
|
19
|
-
We've sent an email to
|
20
|
-
%strong
|
21
|
-
= current_reader.email
|
22
|
-
containing a link that will automatically activate your account and log you in. If you can't find the message, we can
|
23
|
-
= link_to("send it again", new_reader_activation_url) + '.'
|
24
|
-
- else
|
25
|
-
You should have received an email message
|
26
|
-
containing a link that will automatically activate your account and log you in. If you can't find the message, we can
|
27
|
-
= link_to("send it again", new_password_reset_url) + ':'
|
28
|
-
just put your email address in the password reminder form, and if your account has not been activated you'll receive another activation message.
|
29
|
-
|
30
|
-
- if Radiant::Config['reader.allow_registration?']
|
31
|
-
%p
|
32
|
-
If you've put the wrong email address in, the easiest thing to do is just to
|
33
|
-
= link_to 'register again', new_reader_url
|
34
|
-
with the right one. The failed registration will be purged after a week or so.
|
@@ -1,28 +0,0 @@
|
|
1
|
-
= render :partial => 'flasher'
|
2
|
-
|
3
|
-
%div.reader_show
|
4
|
-
- if @reader == current_reader
|
5
|
-
%p
|
6
|
-
%strong
|
7
|
-
Hello
|
8
|
-
= @reader.name + '.'
|
9
|
-
Thank you for joining us. An email has been sent to
|
10
|
-
%strong
|
11
|
-
= @reader.email
|
12
|
-
with a reminder of your login and password and an activation link.
|
13
|
-
Click on that link and the registration process will be complete.
|
14
|
-
|
15
|
-
%p
|
16
|
-
We're sorry about the extra step: it's just to make sure that you are you. If the email hasn't come through yet, you can always go and
|
17
|
-
= link_to("give yourself a gravatar", "http://gravatar.com/signup") + '.'
|
18
|
-
|
19
|
-
- content_for :breadcrumbs do
|
20
|
-
= link_to 'Home', '/'
|
21
|
-
>
|
22
|
-
= link_to 'Readers', '/readers'
|
23
|
-
>
|
24
|
-
= @reader.name
|
25
|
-
|
26
|
-
- content_for :pagetitle do
|
27
|
-
Thank you. Please check your email
|
28
|
-
|
data/config/settings.rb
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
Radiant::Configuration.add do |config|
|
2
|
-
config.namespace :reader do |reader|
|
3
|
-
reader.setting :allow_registration?, :label => 'Allow visitors to register'
|
4
|
-
reader.setting :require_confirmation?, :label => 'Require confirmation of email address'
|
5
|
-
reader.setting :layout, :integer, :options => lambda { Layout.all.collect {|l| [ l.id, l.name ] } }, :label => "Layout", :notes => "Radiant layout used to render reader-administration pages"
|
6
|
-
reader.setting :mail_from_name, :validate => :present, :label => "Email name", :notes => "Name of person from whom administrative email seems to come"
|
7
|
-
reader.setting :mail_from_address, :validate => :present, :label => "Email address", :notes => "Åddress of person from whom administrative email seems to come"
|
8
|
-
end
|
9
|
-
end
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,13 +0,0 @@
|
|
1
|
-
document.observe('dom:loaded', function() {
|
2
|
-
$$('.delivery_chooser').each(function (rb) { rb.observe('click', toggle_readerlist); });
|
3
|
-
if (delivery_selection() != 'selection') Effect.Fade('select_readers');
|
4
|
-
});
|
5
|
-
|
6
|
-
var toggle_readerlist = function() {
|
7
|
-
fx = (delivery_selection() == 'selection') ? Effect.Appear : Effect.Fade;
|
8
|
-
fx('select_readers', { duration: 0.5 });
|
9
|
-
};
|
10
|
-
|
11
|
-
var delivery_selection = function () {
|
12
|
-
return $$('input:checked[type="radio"][name="delivery"]').pluck('value');
|
13
|
-
};
|