2014-01-21 04:51:49 +00:00
|
|
|
|
-set_meta_tags title: t('layout.users.settings_notifier')
|
2012-05-02 10:18:07 +01:00
|
|
|
|
%p
|
2014-01-21 04:51:49 +00:00
|
|
|
|
= t("layout.settings.notifiers.notice_header", email: @user.email)
|
2012-05-02 10:18:07 +01:00
|
|
|
|
%br
|
|
|
|
|
= link_to t("layout.settings.notifiers.change_email_link"), profile_settings_path
|
|
|
|
|
%br
|
|
|
|
|
%br
|
|
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
|
= form_for @user.notifier, url: notifiers_settings_path, html: {class: :form} do |f|
|
|
|
|
|
= render 'notifier', f: f, field: :can_notify
|
2012-05-02 10:18:07 +01:00
|
|
|
|
%h3= t("layout.settings.notifiers.code_header")
|
2013-11-27 09:28:11 +00:00
|
|
|
|
- [:update_code, :new_comment_commit_owner, :new_comment_commit_repo_owner, :new_comment_commit_commentor].each do |field|
|
2014-01-21 04:51:49 +00:00
|
|
|
|
= render 'notifier', f: f, field: field
|
2012-05-02 10:18:07 +01:00
|
|
|
|
%h3= t("layout.settings.notifiers.tracker_header")
|
2012-09-14 17:12:48 +01:00
|
|
|
|
- [:new_comment, :new_comment_reply, :new_issue, :issue_assign].each do |field|
|
2014-01-21 04:51:49 +00:00
|
|
|
|
= render 'notifier', f: f, field: field
|
2012-09-14 17:12:48 +01:00
|
|
|
|
%h3= t("layout.settings.notifiers.build_list_header")
|
|
|
|
|
- [:new_build, :new_associated_build].each do |field|
|
2014-01-21 04:51:49 +00:00
|
|
|
|
= render 'notifier', f: f, field: field
|
2012-05-02 10:18:07 +01:00
|
|
|
|
|
|
|
|
|
%br
|
|
|
|
|
.leftside.w25
|
|
|
|
|
\
|
2014-01-21 04:51:49 +00:00
|
|
|
|
.leftside.w420= submit_tag t('layout.save'), data: {'disable-with' => t('layout.saving')}
|
2012-05-02 10:18:07 +01:00
|
|
|
|
.both
|
|
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
|
disableNotifierCbx($('#settings_notifier_can_notify'));
|
|
|
|
|
$('article .right').addClass('bigpadding');
|
|
|
|
|
|
|
|
|
|
- content_for :sidebar, render('sidebar')
|