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
rename activity filter from project attribute to project details
Ivan Kuchinc2119680a28e
diff --git a/app/views/activities/menu.html.erb b/app/views/activities/menu.html.erbindex 7d53b57a0a9..3ab985cd4a5 100644--- a/app/views/activities/menu.html.erb+++ b/app/views/activities/menu.html.erb@@ -15,7 +15,7 @@<p><% if @activity.event_types.include?("project_attributes") %><%= check_box_tag "event_types[]", "project_attributes", @activity.scope.include?("project_attributes"), id: "event_types_project_attributes" %>- <label for="event_types_project_attributes"><%=t("activity.filter.project_attribute")%></label>+ <label for="event_types_project_attributes"><%= t("activity.filter.project_details") %></label><br /><% end -%><% if @project && @project.descendants.active.any? %>diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 3f4e53183b7..11ea147b113 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -1661,7 +1661,7 @@ en:changeset: "Changesets"message: "Forums"news: "News"- project_attribute: "Project attributes"+ project_details: "Project details"subproject: "Include subprojects"time_entry: "Spent time"wiki_edit: "Wiki"diff --git a/spec/features/activities/activity_page_navigation_spec.rb b/spec/features/activities/activity_page_navigation_spec.rbindex 4dd5b0aa3c8..06e231d3536 100644--- a/spec/features/activities/activity_page_navigation_spec.rb+++ b/spec/features/activities/activity_page_navigation_spec.rb@@ -216,13 +216,13 @@ RSpec.describe "Activity page navigation", :js doproject.update(status_explanation: "New status explanation")end- def ensure_project_attributes_filter_is_checked+ def ensure_project_details_filter_is_checked# First visited activity page (activities_path) will set the- # project attributes filter as checked and subsequent visits+ # project details filter as checked and subsequent visits# to other activity pages will persist this settingif page.current_path == activities_path- check "Project attributes"+ check "Project details"click_button "Apply"endend@@ -231,7 +231,7 @@ RSpec.describe "Activity page navigation", :js dovisit(activity_page)activity_page_path = page.current_path- ensure_project_attributes_filter_is_checked+ ensure_project_details_filter_is_checkedexpect(page).to have_link(text: "Details")expect(page.text).to include("Project status description set (Details)")diff --git a/spec/features/activities/project_attributes_activity_spec.rb b/spec/features/activities/project_attributes_activity_spec.rbindex 57605a2c64d..329490826d6 100644--- a/spec/features/activities/project_attributes_activity_spec.rb+++ b/spec/features/activities/project_attributes_activity_spec.rb@@ -94,7 +94,7 @@ RSpec.describe "Project attributes activity", :js dovisit project_activity_index_path(project)- check "Project attributes"+ check "Project details"click_on "Apply"@@ -139,7 +139,7 @@ RSpec.describe "Project attributes activity", :js dovisit activity_index_path- check "Project attributes"+ check "Project details"click_on "Apply"