[refs #114] add settings for commits notifications
This commit is contained in:
parent
4ba268dd67
commit
71447a29e3
|
@ -18,6 +18,18 @@
|
|||
= f.label :issue_assign, t('activerecord.attributes.settings.notifier.issue_assign'), :class => :label
|
||||
= f.check_box :issue_assign, :class => 'notify_cbx'
|
||||
|
||||
.group
|
||||
= f.label :new_comment_commit_owner, t('activerecord.attributes.settings.notifier.new_comment_commit_owner'), :class => :label
|
||||
= f.check_box :new_comment_commit_owner, :class => 'notify_cbx'
|
||||
|
||||
.group
|
||||
= f.label :new_comment_commit_repo_owner, t('activerecord.attributes.settings.notifier.new_comment_commit_repo_owner'), :class => :label
|
||||
= f.check_box :new_comment_commit_repo_owner, :class => 'notify_cbx'
|
||||
|
||||
.group
|
||||
= f.label :new_comment_commit_commentor, t('activerecord.attributes.settings.notifier.new_comment_commit_commentor'), :class => :label
|
||||
= f.check_box :new_comment_commit_commentor, :class => 'notify_cbx'
|
||||
|
||||
.group.navform.wat-cf
|
||||
%button.button{:type => "submit"}
|
||||
= image_tag("web-app-theme/icons/tick.png", :alt => t("layout.save"))
|
||||
|
|
|
@ -499,6 +499,9 @@ ru:
|
|||
new_comment_reply: Оповещать о новом ответе на мой комментарий
|
||||
new_issue: Оповещать о новых задачах в моих проектах
|
||||
issue_assign: Оповещать, когда на меня выставляют задачу
|
||||
new_comment_commit_owner: Оповещать о комментариях к моему коммиту
|
||||
new_comment_commit_repo_owner: Оповещать о комментариях к коммитам в моем репозитории
|
||||
new_comment_commit_commentor: Оповещать о комментариях к коммиту после моего
|
||||
|
||||
auto_build_list:
|
||||
project_id: Проект
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
class AddSettingsToSettingsNotifiers < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :settings_notifiers, :new_comment_commit_owner, :boolean, :default => true
|
||||
add_column :settings_notifiers, :new_comment_commit_repo_owner, :boolean, :default => true
|
||||
add_column :settings_notifiers, :new_comment_commit_commentor, :boolean, :default => true
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :settings_notifiers, :new_comment_commit_owner
|
||||
remove_column :settings_notifiers, :new_comment_commit_repo_owner
|
||||
remove_column :settings_notifiers, :new_comment_commit_commentor
|
||||
end
|
||||
end
|
17
db/schema.rb
17
db/schema.rb
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20120117110723) do
|
||||
ActiveRecord::Schema.define(:version => 20120118173141) do
|
||||
|
||||
create_table "arches", :force => true do |t|
|
||||
t.string "name", :null => false
|
||||
|
@ -290,14 +290,17 @@ ActiveRecord::Schema.define(:version => 20120117110723) do
|
|||
add_index "rpms", ["project_id"], :name => "index_rpms_on_project_id"
|
||||
|
||||
create_table "settings_notifiers", :force => true do |t|
|
||||
t.integer "user_id", :null => false
|
||||
t.boolean "can_notify", :default => true
|
||||
t.boolean "new_comment", :default => true
|
||||
t.boolean "new_comment_reply", :default => true
|
||||
t.boolean "new_issue", :default => true
|
||||
t.boolean "issue_assign", :default => true
|
||||
t.integer "user_id", :null => false
|
||||
t.boolean "can_notify", :default => true
|
||||
t.boolean "new_comment", :default => true
|
||||
t.boolean "new_comment_reply", :default => true
|
||||
t.boolean "new_issue", :default => true
|
||||
t.boolean "issue_assign", :default => true
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.boolean "new_comment_commit_owner", :default => true
|
||||
t.boolean "new_comment_commit_repo_owner", :default => true
|
||||
t.boolean "new_comment_commit_commentor", :default => true
|
||||
end
|
||||
|
||||
create_table "subscribes", :force => true do |t|
|
||||
|
|
Loading…
Reference in New Issue