diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admin/mail_options.rhtml | 18 | ||||
-rw-r--r-- | app/views/mailer/news_added.rhtml | 6 |
2 files changed, 23 insertions, 1 deletions
diff --git a/app/views/admin/mail_options.rhtml b/app/views/admin/mail_options.rhtml index cab94294f..2f61af4fa 100644 --- a/app/views/admin/mail_options.rhtml +++ b/app/views/admin/mail_options.rhtml @@ -1,3 +1,19 @@ +<div class="contextual"> +<%= link_to l(:label_send_test_email), :action => 'test_email' %> +</div> + <h2><%=l(:field_mail_notification)%></h2> -<%= link_to l(:label_send_test_email), :action => 'test_email' %> +<% form_tag({:action => 'mail_options'}, :id => 'mail-options-form') do %> + +<fieldset class="box"><legend><%=l(:text_select_mail_notifications)%></legend> +<% @notifiables.each do |notifiable| %> + <p><label><%= check_box_tag "notified_events[]", notifiable, Setting.notified_events.include?(notifiable) %> + <%= notifiable.humanize %></label></p> +<% end %> +<div class="clear"></div> +</fieldset> + +<p><%= check_all_links('mail-options-form') %></p> +<%= submit_tag l(:button_save) %> +<% end %> diff --git a/app/views/mailer/news_added.rhtml b/app/views/mailer/news_added.rhtml new file mode 100644 index 000000000..18ddfe17d --- /dev/null +++ b/app/views/mailer/news_added.rhtml @@ -0,0 +1,6 @@ +<%= @news.title %> +<%= url_for :only_path => false, :host => Setting.host_name, :controller => 'news', :action => 'show', :id => @news %> +<%= @news.author.name %> + +<%= @news.description %> + |