Feature #14236 » shared_versions_visibility.patch
| app/models/project.rb | ||
|---|---|---|
|
@rolled_up_versions ||=
|
||
|
Version.scoped(:include => :project,
|
||
|
:conditions => ["#{Project.table_name}.lft >= ? AND #{Project.table_name}.rgt <= ? AND #{Project.table_name}.status <> #{STATUS_ARCHIVED}", lft, rgt])
|
||
|
@rolled_up_versions.reject! { |version| !User.current.allowed_to?(:view_issues, version.project) } unless Setting.public_versions?
|
||
|
@rolled_up_versions
|
||
|
end
|
||
|
# Returns a scope of the Versions used by the project
|
||
| ... | ... | |
|
"))")
|
||
|
end
|
||
|
end
|
||
|
@shared_versions.reject! { |version| !User.current.allowed_to?(:view_issues, version.project) } unless Setting.public_versions?
|
||
|
@shared_versions
|
||
|
end
|
||
|
# Returns a hash of project users grouped by role
|
||
| app/views/settings/_projects.html.erb | ||
|---|---|---|
|
<p><%= setting_select :new_project_user_role_id,
|
||
|
Role.find_all_givable.collect {|r| [r.name, r.id.to_s]},
|
||
|
:blank => "--- #{l(:actionview_instancetag_blank_option)} ---" %></p>
|
||
|
<p><%= setting_check_box :public_versions %></p>
|
||
|
</div>
|
||
|
<%= submit_tag l(:button_save) %>
|
||
| config/locales/ar.yml | ||
|---|---|---|
|
field_closed_on: Closed
|
||
|
setting_default_projects_tracker_ids: Default trackers for new projects
|
||
|
label_total_time: الإجمالي
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/az.yml | ||
|---|---|---|
|
field_closed_on: Closed
|
||
|
setting_default_projects_tracker_ids: Default trackers for new projects
|
||
|
label_total_time: Cəmi
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/bg.yml | ||
|---|---|---|
|
description_date_from: Въведете начална дата
|
||
|
description_date_to: Въведете крайна дата
|
||
|
text_repository_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.'
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/bs.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/ca.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/cs.yml | ||
|---|---|---|
|
field_closed_on: Uzavřeno
|
||
|
setting_default_projects_tracker_ids: Výchozí fronta pro nové projekty
|
||
|
label_total_time: Celkem
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/da.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/de.yml | ||
|---|---|---|
|
warning_attachments_not_saved: "%{count} Datei(en) konnten nicht gespeichert werden."
|
||
|
label_total_time: Gesamtzeit
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/el.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/en-GB.yml | ||
|---|---|---|
|
field_closed_on: Closed
|
||
|
setting_default_projects_tracker_ids: Default trackers for new projects
|
||
|
label_total_time: Total
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/en.yml | ||
|---|---|---|
|
setting_non_working_week_days: Non-working days
|
||
|
setting_jsonp_enabled: Enable JSONP support
|
||
|
setting_default_projects_tracker_ids: Default trackers for new projects
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
|
permission_add_project: Create project
|
||
|
permission_add_subprojects: Create subprojects
|
||
| config/locales/es.yml | ||
|---|---|---|
|
field_closed_on: Closed
|
||
|
setting_default_projects_tracker_ids: Default trackers for new projects
|
||
|
label_total_time: Total
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/et.yml | ||
|---|---|---|
|
field_closed_on: Closed
|
||
|
setting_default_projects_tracker_ids: Default trackers for new projects
|
||
|
label_total_time: "Kokku"
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/eu.yml | ||
|---|---|---|
|
label_total_time: Guztira
|
||
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/fa.yml | ||
|---|---|---|
|
label_total_time: جمله
|
||
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/fi.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/fr.yml | ||
|---|---|---|
|
setting_repositories_encodings: Encodages des fichiers et des dépôts
|
||
|
label_search_for_watchers: Rechercher des observateurs
|
||
|
text_repository_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et underscore sont autorisés.<br />Un fois sauvegardé, l''identifiant ne pourra plus être modifié.'
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/gl.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/he.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/hr.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/hu.yml | ||
|---|---|---|
|
label_total_time: Összesen
|
||
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/id.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/it.yml | ||
|---|---|---|
|
field_closed_on: Chiuso il
|
||
|
setting_default_projects_tracker_ids: Tracker di default per nuovi progetti
|
||
|
label_total_time: Totale
|
||
|
setting_public_versions: Versioni condivise visibili a non membri
|
||
| config/locales/ja.yml | ||
|---|---|---|
|
field_inherit_members: メンバーを継承
|
||
|
field_closed_on: 終了日
|
||
|
label_total_time: 合計
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/ko.yml | ||
|---|---|---|
|
field_closed_on: 완료일
|
||
|
setting_default_projects_tracker_ids: 새 프로젝트에 기본적으로 추가할 일감 유형
|
||
|
label_total_time: 합계
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/lt.yml | ||
|---|---|---|
|
label_total_time: Iš viso
|
||
|
text_scm_config: Jūs galite pakeisti SCM komandas byloje config/configuration.yml. Prašome perkrauti programą po redagavimo, idant įgalinti pakeitimus.
|
||
|
text_scm_command_not_available: SCM komanda nepasiekiama. Patikrinkite administravimo skydelio nustatymus.
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/lv.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/mk.yml | ||
|---|---|---|
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_footer: Email footer
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/mn.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/nl.yml | ||
|---|---|---|
|
setting_default_projects_tracker_ids: Standaard trackers voor nieuwe projecten
|
||
|
label_total_time: Totaal
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/no.yml | ||
|---|---|---|
|
field_closed_on: Closed
|
||
|
setting_default_projects_tracker_ids: Default trackers for new projects
|
||
|
label_total_time: Totalt
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/pl.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/pt-BR.yml | ||
|---|---|---|
|
field_closed_on: Fechado
|
||
|
setting_default_projects_tracker_ids: Default trackers for new projects
|
||
|
label_total_time: Total
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/pt.yml | ||
|---|---|---|
|
field_closed_on: Fechado
|
||
|
setting_default_projects_tracker_ids: Default trackers for new projects
|
||
|
label_total_time: Total
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/ro.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/ru.yml | ||
|---|---|---|
|
field_closed_on: Закрыта
|
||
|
setting_default_projects_tracker_ids: Трекеры по умолчанию для новых проектов
|
||
|
label_total_time: Общее время
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/sk.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/sl.yml | ||
|---|---|---|
|
field_closed_on: Closed
|
||
|
setting_default_projects_tracker_ids: Default trackers for new projects
|
||
|
label_total_time: Skupaj
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/sq.yml | ||
|---|---|---|
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_footer: Email footer
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/sr-YU.yml | ||
|---|---|---|
|
label_total_time: Ukupno
|
||
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/sr.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/sv.yml | ||
|---|---|---|
|
description_date_from: Ange startdatum
|
||
|
description_date_to: Ange slutdatum
|
||
|
text_repository_identifier_info: 'Endast gemener (a-z), siffror, streck och understreck är tillåtna.<br />När identifieraren sparats kan den inte ändras.'
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/th.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/tr.yml | ||
|---|---|---|
|
label_total_time: Toplam
|
||
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/uk.yml | ||
|---|---|---|
|
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it.
|
||
|
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel.
|
||
|
setting_emails_header: Email header
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/vi.yml | ||
|---|---|---|
|
field_closed_on: Đã đóng
|
||
|
setting_default_projects_tracker_ids: Default trackers for new projects
|
||
|
label_total_time: Tổng cộng
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/zh-TW.yml | ||
|---|---|---|
|
description_date_to: 輸入結束日期
|
||
|
text_repository_identifier_info: '僅允許使用小寫英文字母 (a-z), 阿拉伯數字, 虛線與底線。<br />一旦儲存之後, 代碼便無法再次被更改。'
|
||
|
label_total_time: 總計
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/locales/zh.yml | ||
|---|---|---|
|
field_closed_on: Closed
|
||
|
setting_default_projects_tracker_ids: Default trackers for new projects
|
||
|
label_total_time: 合计
|
||
|
setting_public_versions: Shared versions visible to non members
|
||
| config/settings.yml | ||
|---|---|---|
|
default:
|
||
|
- '6'
|
||
|
- '7'
|
||
|
public_versions:
|
||
|
default: 1
|
||