def initialize(attributes=nil, *args)
super
+ if new_record? && !(attributes && attributes.key?(:hide_mail))
+ self.hide_mail = Setting.default_users_hide_mail?
+ end
self.others ||= {}
end
<p><em class="info"><%= l(:text_session_expiration_settings) %></em></p>
</fieldset>
+<fieldset class="box">
+ <legend><%= l(:label_default_values_for_new_users) %></legend>
+
+ <div class="tabular settings">
+ <p><%= setting_check_box :default_users_hide_mail, :label => :field_hide_mail %></p>
+ </div>
+</fieldset>
+
<%= submit_tag l(:button_save) %>
<% end %>
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
description_date_from: Въведете начална дата
description_date_to: Въведете крайна дата
text_repository_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.'
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
error_attachment_extension_not_allowed: Attachment extension %{extension} is not allowed
setting_attachment_extensions_allowed: Allowed extensions
setting_attachment_extensions_denied: Disallowed extensions
+ label_default_values_for_new_users: Default values for new users
label_create_missing_values: Create missing values
label_api: API
label_field_format_enumeration: Key/value list
+ label_default_values_for_new_users: Default values for new users
button_login: Login
button_submit: Submit
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
label_create_missing_values: Créer les valeurs manquantes
label_api: API
label_field_format_enumeration: Liste clé/valeur
+ label_default_values_for_new_users: Valeurs par défaut pour les nouveaux utilisateurs
button_login: Connexion
button_submit: Soumettre
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: 禁止する拡張子
label_any_open_issues: 未完了のチケット
label_no_open_issues: なし または完了したチケット
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: Disallowed extensions
label_any_open_issues: any open issues
label_no_open_issues: no open issues
+ label_default_values_for_new_users: Default values for new users
description_date_from: 輸入起始日期
description_date_to: 輸入結束日期
text_repository_identifier_info: '僅允許使用小寫英文字母 (a-z), 阿拉伯數字, 虛線與底線。<br />一旦儲存之後, 代碼便無法再次被更改。'
+ label_default_values_for_new_users: Default values for new users
setting_attachment_extensions_denied: 禁止上传的附件类型
label_any_open_issues: 任意进行中的问题
label_no_open_issues: 任意已关闭的问题
+ label_default_values_for_new_users: Default values for new users
default: 0
# encodings used to convert repository files content to UTF-8
# multiple values accepted, comma separated
+default_users_hide_mail:
+ default: 1
repositories_encodings:
default: ''
# encoding used to convert commit logs to UTF-8
assert_equal true, preference.hide_mail
end
+ def test_hide_mail_should_default_to_false_with_setting
+ with_settings :default_users_hide_mail => '0' do
+ preference = UserPreference.new
+ assert_equal false, preference.hide_mail
+ end
+ end
+
def test_create
user = User.new(:firstname => "new", :lastname => "user", :mail => "newuser@somenet.foo")
user.login = "newuser"