Skip to content

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

Update labels and layout for activity filters

Mir Bhatiae71904bfa95e
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb
index 0123bbde18f..3ecd6d60622 100644
--- a/app/views/activities/index.html.erb
+++ b/app/views/activities/index.html.erb
@@ -106,16 +106,27 @@ See COPYRIGHT and LICENSE files for more details.
<legend class="form--fieldset-legend"><%= t(:description_filter) %></legend>
<p>
<%= hidden_field_tag "event_types[]" %>
- <% @activity.event_types.sort_by { |type| t("label_#{type.singularize}_plural") }.each do |t| %>
- <%= check_box_tag "event_types[]", t, @activity.scope.include?(t), id: "event_types_#{t}" %>
- <label for="event_types_<%=t%>"><%=t("label_#{t.singularize}_plural")%></label>
+ <% @activity.event_types.sort_by { |type| t("label_#{type.singularize}_activity_filter") }.each do |t| %>
+ <% unless t == "project_attributes" %>
+ <%= check_box_tag "event_types[]", t, @activity.scope.include?(t), id: "event_types_#{t}" %>
+ <label for="event_types_<%=t%>"><%=t("label_#{t.singularize}_activity_filter")%></label>
+ <br />
+ <% end -%>
+ <% end %>
+ </p>
+ <p>
+ <% if @activity.event_types.include?("project_attributes") %>
+ <%= hidden_field_tag "event_types[]" %>
+ <%= check_box_tag "event_types[]", "project_attributes", @activity.scope.include?("project_attributes"), id: "event_types_project_attributes" %>
+ <label for="event_types_project_attributes"><%=t("label_project_attribute_activity_filter")%></label>
<br />
+ <% end -%>
+ <% if @project && @project.descendants.active.any? %>
+ <%= hidden_field_tag 'with_subprojects', 0 %>
+ <%= check_box_tag 'with_subprojects', 1, @with_subprojects, id: "with_subprojects" %>
+ <label for="with_subprojects"><%=t("label_subproject_activity_filter")%></label>
<% end %>
</p>
- <% if @project && @project.descendants.active.any? %>
- <%= hidden_field_tag 'with_subprojects', 0 %>
- <p><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=t(:label_subproject_plural)%></label></p>
- <% end %>
<%= hidden_field_tag('user_id', params[:user_id]) if params[:user_id].present? %>
<%= hidden_field_tag('from', params[:from]) if params[:from].present? %>
<p><%= submit_tag t(:button_apply), class: 'button -small -highlight', name: nil %></p>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 3b84f0c0b9b..bf2bbb24ce9 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1622,6 +1622,7 @@ en:
label_changeset: "Changeset"
label_changeset_id: "Changeset ID"
label_changeset_plural: "Changesets"
+ label_changeset_activity_filter: "Changesets"
label_checked: "checked"
label_check_uncheck_all_in_column: "Check/Uncheck all in column"
label_check_uncheck_all_in_row: "Check/Uncheck all in row"
@@ -1806,6 +1807,7 @@ en:
label_message_last: "Last message"
label_message_new: "New message"
label_message_plural: "Messages"
+ label_message_activity_filter: "Forum"
label_message_posted: "Message added"
label_min_max_length: "Min - Max length"
label_minute_plural: "minutes"
@@ -1835,6 +1837,7 @@ en:
label_news_new: "Add news"
label_news_edit: "Edit news"
label_news_plural: "News"
+ label_news_activity_filter: "News"
label_news_view_all: "View all news"
label_next: "Next"
label_next_week: "Next week"
@@ -1896,6 +1899,7 @@ en:
label_profile: "Profile"
label_project_activity: "Project activity"
label_project_attribute_plural: "Project attributes"
+ label_project_attribute_activity_filter: "Project attributes"
label_project_count: "Total number of projects"
label_project_copy_notifications: "Send email notifications during the project copy"
label_project_latest: "Latest projects"
@@ -1981,6 +1985,7 @@ en:
label_subproject: "Subproject"
label_subproject_new: "New subproject"
label_subproject_plural: "Subprojects"
+ label_subproject_activity_filter: "Include subprojects"
label_subtask_plural: "Subtasks"
label_summary: "Summary"
label_system: "System"
@@ -1992,6 +1997,7 @@ en:
label_this_week: "this week"
label_this_year: "this year"
label_time_entry_plural: "Spent time"
+ label_time_entry_activity_filter: "Spent time"
label_projects_menu: "Projects"
label_today: "today"
label_top_menu: "Top Menu"
@@ -2044,6 +2050,7 @@ en:
label_wiki_dont_show_menu_item: "Do not show this wikipage in project navigation"
label_wiki_edit: "Wiki edit"
label_wiki_edit_plural: "Wiki edits"
+ label_wiki_edit_activity_filter: "Wiki"
label_wiki_page_attachments: "Wiki page attachments"
label_wiki_page_id: "Wiki page ID"
label_wiki_navigation: "Wiki navigation"
@@ -2062,6 +2069,7 @@ en:
label_work_package_new: "New work package"
label_work_package_edit: "Edit work package %{name}"
label_work_package_plural: "Work packages"
+ label_work_package_activity_filter: "Work packages"
label_work_package_status: "Work package status"
label_work_package_status_new: "New status"
label_work_package_status_plural: "Work package statuses"
diff --git a/modules/budgets/config/locales/en.yml b/modules/budgets/config/locales/en.yml
index 62dd9abd9b5..9ef1b841b8f 100644
--- a/modules/budgets/config/locales/en.yml
+++ b/modules/budgets/config/locales/en.yml
@@ -71,6 +71,7 @@ en:
label_budget: "Budget"
label_budget_new: "New budget"
label_budget_plural: "Budgets"
+ label_budget_activity_filter: "Budgets"
label_budget_id: "Budget #%{id}"
label_deliverable: "Budget"
label_example_placeholder: 'e.g., %{decimal}'
diff --git a/modules/documents/config/locales/en.yml b/modules/documents/config/locales/en.yml
index dfaa5c29470..0e003d5221b 100644
--- a/modules/documents/config/locales/en.yml
+++ b/modules/documents/config/locales/en.yml
@@ -47,6 +47,7 @@ en:
label_document_added: "Document added"
label_document_new: "New document"
label_document_plural: "Documents"
+ label_document_activity_filter: "Documents"
label_documents: "Documents"
permission_manage_documents: "Manage documents"
diff --git a/modules/meeting/config/locales/en.yml b/modules/meeting/config/locales/en.yml
index 9a102178554..5ddc2ad6055 100644
--- a/modules/meeting/config/locales/en.yml
+++ b/modules/meeting/config/locales/en.yml
@@ -60,6 +60,7 @@ en:
label_meeting: "Meeting"
label_meeting_plural: "Meetings"
+ label_meeting_activity_filter: "Meetings"
label_meeting_new: "New Meeting"
label_meeting_edit: "Edit Meeting"
label_meeting_agenda: "Agenda"