Patch by Rocco Stanzione, slightly edited. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1235 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3a75b6771f
commit
6fcc512cb7
|
@ -70,6 +70,7 @@ class ProjectsController < ApplicationController
|
||||||
if request.get?
|
if request.get?
|
||||||
@custom_values = ProjectCustomField.find(:all, :order => "#{CustomField.table_name}.position").collect { |x| CustomValue.new(:custom_field => x, :customized => @project) }
|
@custom_values = ProjectCustomField.find(:all, :order => "#{CustomField.table_name}.position").collect { |x| CustomValue.new(:custom_field => x, :customized => @project) }
|
||||||
@project.trackers = Tracker.all
|
@project.trackers = Tracker.all
|
||||||
|
@project.is_public = Setting.default_projects_public?
|
||||||
else
|
else
|
||||||
@project.custom_fields = CustomField.find(params[:custom_field_ids]) if params[:custom_field_ids]
|
@project.custom_fields = CustomField.find(params[:custom_field_ids]) if params[:custom_field_ids]
|
||||||
@custom_values = ProjectCustomField.find(:all, :order => "#{CustomField.table_name}.position").collect { |x| CustomValue.new(:custom_field => x, :customized => @project, :value => (params[:custom_fields] ? params["custom_fields"][x.id.to_s] : nil)) }
|
@custom_values = ProjectCustomField.find(:all, :order => "#{CustomField.table_name}.position").collect { |x| CustomValue.new(:custom_field => x, :customized => @project, :value => (params[:custom_fields] ? params["custom_fields"][x.id.to_s] : nil)) }
|
||||||
|
@ -78,7 +79,7 @@ class ProjectsController < ApplicationController
|
||||||
@project.enabled_module_names = params[:enabled_modules]
|
@project.enabled_module_names = params[:enabled_modules]
|
||||||
flash[:notice] = l(:notice_successful_create)
|
flash[:notice] = l(:notice_successful_create)
|
||||||
redirect_to :controller => 'admin', :action => 'projects'
|
redirect_to :controller => 'admin', :action => 'projects'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,9 @@
|
||||||
|
|
||||||
<p><label><%= l(:setting_feeds_limit) %></label>
|
<p><label><%= l(:setting_feeds_limit) %></label>
|
||||||
<%= text_field_tag 'settings[feeds_limit]', Setting.feeds_limit, :size => 6 %></p>
|
<%= text_field_tag 'settings[feeds_limit]', Setting.feeds_limit, :size => 6 %></p>
|
||||||
|
|
||||||
|
<p><label><%= l(:setting_default_projects_public) %></label>
|
||||||
|
<%= check_box_tag 'settings[default_projects_public]', 1, Setting.default_projects_public? %><%= hidden_field_tag 'settings[default_projects_public]', 0 %></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= submit_tag l(:button_save) %>
|
<%= submit_tag l(:button_save) %>
|
||||||
|
|
|
@ -103,6 +103,8 @@ issue_list_default_columns:
|
||||||
- updated_on
|
- updated_on
|
||||||
display_subprojects_issues:
|
display_subprojects_issues:
|
||||||
default: 1
|
default: 1
|
||||||
|
default_projects_public:
|
||||||
|
default: 1
|
||||||
# encodings used to convert repository files content to UTF-8
|
# encodings used to convert repository files content to UTF-8
|
||||||
# multiple values accepted, comma separated
|
# multiple values accepted, comma separated
|
||||||
repositories_encodings:
|
repositories_encodings:
|
||||||
|
@ -113,4 +115,4 @@ emails_footer:
|
||||||
default: |-
|
default: |-
|
||||||
You have received this notification because you have either subscribed to it, or are involved in it.
|
You have received this notification because you have either subscribed to it, or are involved in it.
|
||||||
To change your notification preferences, please click here: http://hostname/my/account
|
To change your notification preferences, please click here: http://hostname/my/account
|
||||||
|
|
||||||
|
|
|
@ -614,3 +614,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -614,3 +614,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -616,3 +616,4 @@ text_reassign_time_entries: 'Reassign reported hours to this issue:'
|
||||||
label_reverse_chronological_order: In reverse chronological order
|
label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -615,3 +615,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -193,6 +193,7 @@ setting_host_name: Host name
|
||||||
setting_text_formatting: Text formatting
|
setting_text_formatting: Text formatting
|
||||||
setting_wiki_compression: Wiki history compression
|
setting_wiki_compression: Wiki history compression
|
||||||
setting_feeds_limit: Feed content limit
|
setting_feeds_limit: Feed content limit
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
setting_autofetch_changesets: Autofetch commits
|
setting_autofetch_changesets: Autofetch commits
|
||||||
setting_sys_api_enabled: Enable WS for repository management
|
setting_sys_api_enabled: Enable WS for repository management
|
||||||
setting_commit_ref_keywords: Referencing keywords
|
setting_commit_ref_keywords: Referencing keywords
|
||||||
|
|
|
@ -617,3 +617,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -621,3 +621,4 @@ field_comments_sorting: Display comments
|
||||||
label_reverse_chronological_order: In reverse chronological order
|
label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -194,6 +194,7 @@ setting_host_name: Nom d'hôte
|
||||||
setting_text_formatting: Formatage du texte
|
setting_text_formatting: Formatage du texte
|
||||||
setting_wiki_compression: Compression historique wiki
|
setting_wiki_compression: Compression historique wiki
|
||||||
setting_feeds_limit: Limite du contenu des flux RSS
|
setting_feeds_limit: Limite du contenu des flux RSS
|
||||||
|
setting_default_projects_public: Définir les nouveaux projects comme publics par défaut
|
||||||
setting_autofetch_changesets: Récupération auto. des commits
|
setting_autofetch_changesets: Récupération auto. des commits
|
||||||
setting_sys_api_enabled: Activer les WS pour la gestion des dépôts
|
setting_sys_api_enabled: Activer les WS pour la gestion des dépôts
|
||||||
setting_commit_ref_keywords: Mot-clés de référencement
|
setting_commit_ref_keywords: Mot-clés de référencement
|
||||||
|
|
|
@ -614,3 +614,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -614,3 +614,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -615,3 +615,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -614,3 +614,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -615,3 +615,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -615,3 +615,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -614,3 +614,4 @@ field_comments_sorting: Display comments
|
||||||
label_reverse_chronological_order: In reverse chronological order
|
label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -614,3 +614,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -614,3 +614,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -614,3 +614,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -618,3 +618,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -615,3 +615,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -615,3 +615,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -616,3 +616,4 @@ label_reverse_chronological_order: In reverse chronological order
|
||||||
label_preferences: Preferences
|
label_preferences: Preferences
|
||||||
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
setting_display_subprojects_issues: Display subprojects issues on main projects by default
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -615,3 +615,4 @@ enumeration_issue_priorities: 項目優先權
|
||||||
enumeration_doc_categories: 文件分類
|
enumeration_doc_categories: 文件分類
|
||||||
enumeration_activities: 活動 (time tracking)
|
enumeration_activities: 活動 (time tracking)
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
|
@ -615,3 +615,4 @@ enumeration_issue_priorities: 问题优先级
|
||||||
enumeration_doc_categories: 文档类别
|
enumeration_doc_categories: 文档类别
|
||||||
enumeration_activities: 活动(时间跟踪)
|
enumeration_activities: 活动(时间跟踪)
|
||||||
label_overall_activity: Overall activity
|
label_overall_activity: Overall activity
|
||||||
|
setting_default_projects_public: New projects are public by default
|
||||||
|
|
Loading…
Reference in New Issue