From cdd7b810794afd509523a6362a3cae909b84f65e Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Tue, 7 Mar 2017 14:29:32 +0100 Subject: [PATCH] Reduce redundant information --- config/locales/js-en.yml | 3 ++- .../collapsible-section.directive.html | 2 +- .../app/components/routing/wp-list/wp.list.html | 2 +- .../work-package-comment.directive.html | 2 +- .../wp-fast-table/builders/cell-builder.ts | 1 - .../wp-relation-row/wp-relation-row.template.html | 4 ++-- .../wp-table/sort-header/sort-header.directive.html | 13 ++++++------- .../wp-table/sort-header/sort-header.directive.ts | 5 +++++ .../app/components/wp-table/wp-table.directive.html | 7 +++---- .../app/components/wp-table/wp-table.directive.ts | 1 + .../wp-watchers/wp-watcher-entry.directive.html | 6 ++---- .../components/accessible_by_keyboard.html | 2 +- .../app/templates/work_packages/query_columns.html | 4 ++-- .../accessible-by-keyboard-directive.js | 2 +- 14 files changed, 28 insertions(+), 26 deletions(-) diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml index 0ceae4cda4..6aae331c18 100644 --- a/config/locales/js-en.yml +++ b/config/locales/js-en.yml @@ -90,9 +90,10 @@ en: label_activate: "Activate" label_activity_no: "Activity entry number %{activityNo}" label_activity_with_comment_no: "Activity entry number %{activityNo}. Has a user comment." - label_add_columns: "Add selected columns" + label_add_columns: "Add columns" label_add_comment: "Add comment" label_add_comment_title: "Click to add a comment" + label_add_selected_columns: "Add selected columns" label_added_by: "added by" label_added_time_by: "Added by %{author} %{age}" label_ago: "days ago" diff --git a/frontend/app/components/common/collapsible-section/collapsible-section.directive.html b/frontend/app/components/common/collapsible-section/collapsible-section.directive.html index 9956cafa2d..780b755691 100644 --- a/frontend/app/components/common/collapsible-section/collapsible-section.directive.html +++ b/frontend/app/components/common/collapsible-section/collapsible-section.directive.html @@ -1,6 +1,6 @@
diff --git a/frontend/app/components/routing/wp-list/wp.list.html b/frontend/app/components/routing/wp-list/wp.list.html index 8d8ff68c56..388e894140 100644 --- a/frontend/app/components/routing/wp-list/wp.list.html +++ b/frontend/app/components/routing/wp-list/wp.list.html @@ -68,7 +68,7 @@ diff --git a/frontend/app/components/work-packages/work-package-comment/work-package-comment.directive.html b/frontend/app/components/work-packages/work-package-comment/work-package-comment.directive.html index c0a592d448..614cc8a242 100644 --- a/frontend/app/components/work-packages/work-package-comment/work-package-comment.directive.html +++ b/frontend/app/components/work-packages/work-package-comment/work-package-comment.directive.html @@ -22,7 +22,7 @@ class="inplace-editing--trigger-container" span-class="inplace-editing--container" link-class="inplace-editing--trigger-link" - aria-label="{{ ::vm.text.editTitle }}" + link-aria-label="{{ ::vm.text.editTitle }}" execute="vm.activate()" focus="vm.shouldFocus()"> diff --git a/frontend/app/components/wp-fast-table/builders/cell-builder.ts b/frontend/app/components/wp-fast-table/builders/cell-builder.ts index 058aa0d733..2e1724de3e 100644 --- a/frontend/app/components/wp-fast-table/builders/cell-builder.ts +++ b/frontend/app/components/wp-fast-table/builders/cell-builder.ts @@ -59,7 +59,6 @@ export class CellBuilder { text = cellEmptyPlaceholder; } else { text = field.valueString; - span.setAttribute('aria-label', `${field.label} ${text}`); } field.render(span, text); diff --git a/frontend/app/components/wp-relations/wp-relation-row/wp-relation-row.template.html b/frontend/app/components/wp-relations/wp-relation-row/wp-relation-row.template.html index 4517deac74..36a9b8d0b4 100644 --- a/frontend/app/components/wp-relations/wp-relation-row/wp-relation-row.template.html +++ b/frontend/app/components/wp-relations/wp-relation-row/wp-relation-row.template.html @@ -40,7 +40,7 @@
@@ -52,7 +52,7 @@ diff --git a/frontend/app/components/wp-table/sort-header/sort-header.directive.html b/frontend/app/components/wp-table/sort-header/sort-header.directive.html index b690528526..d8eefabe09 100644 --- a/frontend/app/components/wp-table/sort-header/sort-header.directive.html +++ b/frontend/app/components/wp-table/sort-header/sort-header.directive.html @@ -1,9 +1,10 @@ -
+ diff --git a/frontend/app/components/wp-table/sort-header/sort-header.directive.ts b/frontend/app/components/wp-table/sort-header/sort-header.directive.ts index 5bef0ed9d5..13fc34b51b 100644 --- a/frontend/app/components/wp-table/sort-header/sort-header.directive.ts +++ b/frontend/app/components/wp-table/sort-header/sort-header.directive.ts @@ -68,6 +68,11 @@ function sortHeader(wpTableHierarchy: WorkPackageTableHierarchyService){ return false; } + scope.text = { + toggleHierarchy: I18n.t('js.work_packages.hierarchy.toggle_button'), + openMenu: I18n.t('js.label_open_menu') + }; + function setFullTitleAndSummary() { scope.fullTitle = scope.headerTitle; diff --git a/frontend/app/components/wp-table/wp-table.directive.html b/frontend/app/components/wp-table/wp-table.directive.html index d14b325f5e..141b82beed 100644 --- a/frontend/app/components/wp-table/wp-table.directive.html +++ b/frontend/app/components/wp-table/wp-table.directive.html @@ -27,10 +27,11 @@ ng-class="column.name == 'id' && '-short' "> -
+ @@ -51,8 +52,6 @@
- - diff --git a/frontend/app/components/wp-table/wp-table.directive.ts b/frontend/app/components/wp-table/wp-table.directive.ts index 105a34b653..9adfbf9fe1 100644 --- a/frontend/app/components/wp-table/wp-table.directive.ts +++ b/frontend/app/components/wp-table/wp-table.directive.ts @@ -188,6 +188,7 @@ function WorkPackagesTableController($scope:any, $rootScope:ng.IRootScopeService title: I18n.t('js.work_packages.faulty_query.title'), description: I18n.t('js.work_packages.faulty_query.description') }, + addColumns: I18n.t('js.label_add_columns'), tableSummary: I18n.t('js.work_packages.table.summary'), tableSummaryHints: [ I18n.t('js.work_packages.table.text_inline_edit'), diff --git a/frontend/app/components/wp-watchers/wp-watcher-entry.directive.html b/frontend/app/components/wp-watchers/wp-watcher-entry.directive.html index a71500c4e7..e4391e02b4 100644 --- a/frontend/app/components/wp-watchers/wp-watcher-entry.directive.html +++ b/frontend/app/components/wp-watchers/wp-watcher-entry.directive.html @@ -5,10 +5,8 @@ - + {{ $ctrl.watcher.name }} @@ -16,7 +14,7 @@ diff --git a/frontend/app/templates/work_packages/query_columns.html b/frontend/app/templates/work_packages/query_columns.html index 419aec925f..e65bc258f5 100644 --- a/frontend/app/templates/work_packages/query_columns.html +++ b/frontend/app/templates/work_packages/query_columns.html @@ -14,12 +14,12 @@ - +