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
Add page title, add correct table cell titles
Benjamin Bädorf76c2eb35fa91
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rbindex 8052b5d6902..be0782b3a6b 100644--- a/app/controllers/my_controller.rb+++ b/app/controllers/my_controller.rb@@ -85,7 +85,10 @@ class MyController < ApplicationControllerdef notificationsrender html: '',layout: 'angular',- locals: { menu_name: :my_menu }+ locals: {+ menu_name: :my_menu,+ page_title: [I18n.t(:label_my_account), I18n.t('js.notifications.settings.title')]+ }end# Create a new feeds keydiff --git a/app/views/layouts/angular.html.erb b/app/views/layouts/angular.html.erbindex d20c1858a93..a14257a1e65 100644--- a/app/views/layouts/angular.html.erb+++ b/app/views/layouts/angular.html.erb@@ -28,6 +28,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%><%= content_for :header_tags do %>+ <% html_title(*local_assigns[:page_title]) if local_assigns[:page_title].present? %><%= nonced_javascript_tag do %><%= include_gon(need_tag: false) -%><% end %>diff --git a/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.html b/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.htmlindex ee24d7d4b0b..a184c19ea68 100644--- a/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.html+++ b/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.html@@ -20,13 +20,19 @@</thead><tbody><tr>- <th class="op-table--cell op-table--cell_soft-heading">{{ text.mentioned_header }}</th>+ <th class="op-table--cell op-table--cell_soft-heading">+ <h5>{{ text.mentioned_header.title }}</h5>+ <p>{{ text.mentioned_header.description }}</p>+ </th><ng-container *ngFor="let item of settings.controls"><td class="op-table--cell"><input type="checkbox" disabled checked /></td></ng-container></tr><tr>- <th class="op-table--cell op-table--cell_soft-heading">{{ text.involved_header }}</th>+ <th class="op-table--cell op-table--cell_soft-heading">+ <h5>{{ text.involved_header.title }}</h5>+ <p>{{ text.involved_header.description }}</p>+ </th><ng-container *ngFor="let item of settings.controls"><td class="op-table--cell" [formGroup]="item"><inputdiff --git a/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.ts b/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.tsindex 03f303e748d..7d9011b59ce 100644--- a/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.ts+++ b/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.ts@@ -25,8 +25,14 @@ export class NotificationSettingsTableComponent {text = {notify_me: this.I18n.t('js.notifications.settings.notify_me'),save: this.I18n.t('js.button_save'),- mentioned_header: this.I18n.t('js.notifications.settings.reasons.mentioned.title'),- involved_header: this.I18n.t('js.notifications.settings.reasons.involved.title'),+ mentioned_header: {+ title: this.I18n.t('js.notifications.settings.reasons.mentioned.title'),+ description: this.I18n.t('js.notifications.settings.reasons.mentioned.description'),+ },+ involved_header: {+ title: this.I18n.t('js.notifications.settings.reasons.involved.title'),+ description: this.I18n.t('js.notifications.settings.reasons.involved.description'),+ },watched_header: this.I18n.t('js.notifications.settings.reasons.watched'),work_package_commented_header: this.I18n.t('js.notifications.settings.reasons.work_package_commented'),work_package_created_header: this.I18n.t('js.notifications.settings.reasons.work_package_created'),