OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Remove the time tab when the FF is disabled
Klaus Zanders00761d9468ac
diff --git a/modules/costs/app/views/admin/costs_settings/show.html.erb b/modules/costs/app/views/admin/costs_settings/show.html.erbindex e6eb5fa7062..d7f39e7fa1c 100644--- a/modules/costs/app/views/admin/costs_settings/show.html.erb+++ b/modules/costs/app/views/admin/costs_settings/show.html.erb@@ -44,27 +44,30 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::Alpha::TabPanels.new(label: I18n.t(:project_module_costs))) do |component|- component.with_tab(selected: true, id: "tab-time") do |tab|- tab.with_text { I18n.t(:label_time) }- tab.with_panel do- primer_form_with(scope: :settings, action: :update, method: :patch) do |time_form|- render_inline_settings_form(time_form) do |form|- form.html_content do- render(Primer::Beta::Subhead.new(hide_border: true)) do |subhead|- subhead.with_heading(size: :medium) { I18n.t(:label_mandatory_fields) }- subhead.with_description { I18n.t(:description_time_settings) }+ if OpenProject::FeatureDecisions.track_start_and_end_times_for_time_entries_active?+ component.with_tab(selected: true, id: "tab-time") do |tab|+ tab.with_text { I18n.t(:label_time) }+ tab.with_panel do+ primer_form_with(scope: :settings, action: :update, method: :patch) do |time_form|+ render_inline_settings_form(time_form) do |form|+ form.html_content do+ render(Primer::Beta::Subhead.new(hide_border: true)) do |subhead|+ subhead.with_heading(size: :medium) { I18n.t(:label_mandatory_fields) }+ subhead.with_description { I18n.t(:description_time_settings) }+ endend- end- form.check_box(name: :allow_tracking_start_and_end_times)- form.check_box(name: :enforce_tracking_start_and_end_times)- form.submit+ form.check_box(name: :allow_tracking_start_and_end_times)+ form.check_box(name: :enforce_tracking_start_and_end_times)++ form.submit+ endendendendend- component.with_tab(id: "tab-costs") do |tab|+ component.with_tab(id: "tab-costs", selected: !OpenProject::FeatureDecisions.track_start_and_end_times_for_time_entries_active?) do |tab|tab.with_text { I18n.t(:label_cost) }tab.with_panel doprimer_form_with(scope: :settings, action: :update, method: :patch) do |time_form|