Merge pull request #5232 from opf/fix/23475-2f-redundante-inhalte

[23475] [2f] Redundante Inhalte
pull/5241/head
Henriette Dinger 8 years ago committed by GitHub
commit 1ca33a7b66
  1. 3
      config/locales/js-en.yml
  2. 2
      frontend/app/components/common/collapsible-section/collapsible-section.directive.html
  3. 2
      frontend/app/components/routing/wp-list/wp.list.html
  4. 2
      frontend/app/components/work-packages/work-package-comment/work-package-comment.directive.html
  5. 1
      frontend/app/components/wp-fast-table/builders/cell-builder.ts
  6. 4
      frontend/app/components/wp-relations/wp-relation-row/wp-relation-row.template.html
  7. 13
      frontend/app/components/wp-table/sort-header/sort-header.directive.html
  8. 5
      frontend/app/components/wp-table/sort-header/sort-header.directive.ts
  9. 7
      frontend/app/components/wp-table/wp-table.directive.html
  10. 1
      frontend/app/components/wp-table/wp-table.directive.ts
  11. 6
      frontend/app/components/wp-watchers/wp-watcher-entry.directive.html
  12. 2
      frontend/app/templates/components/accessible_by_keyboard.html
  13. 4
      frontend/app/templates/work_packages/query_columns.html
  14. 2
      frontend/app/ui_components/accessible-by-keyboard-directive.js

@ -90,9 +90,10 @@ en:
label_activate: "Activate" label_activate: "Activate"
label_activity_no: "Activity entry number %{activityNo}" label_activity_no: "Activity entry number %{activityNo}"
label_activity_with_comment_no: "Activity entry number %{activityNo}. Has a user comment." 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: "Add comment"
label_add_comment_title: "Click to add a comment" label_add_comment_title: "Click to add a comment"
label_add_selected_columns: "Add selected columns"
label_added_by: "added by" label_added_by: "added by"
label_added_time_by: "Added by %{author} %{age}" label_added_time_by: "Added by %{author} %{age}"
label_ago: "days ago" label_ago: "days ago"

@ -1,6 +1,6 @@
<section class="collapsible-section" ng-class="{ '-expanded': $ctrl.expanded }"> <section class="collapsible-section" ng-class="{ '-expanded': $ctrl.expanded }">
<accessible-by-keyboard execute="$ctrl.toggle()" <accessible-by-keyboard execute="$ctrl.toggle()"
aria-label="{{ ::$ctrl.sectionTitle }}" link-aria-label="{{ ::$ctrl.sectionTitle }}"
link-class="collapsible-section--toggle-link" link-class="collapsible-section--toggle-link"
span-class="collapsible-section--legend"> span-class="collapsible-section--legend">
<span ng-bind="::$ctrl.sectionTitle"></span> <span ng-bind="::$ctrl.sectionTitle"></span>

@ -68,7 +68,7 @@
<accessible-by-keyboard <accessible-by-keyboard
link-class="hidden-for-sighted skip-navigation-link" link-class="hidden-for-sighted skip-navigation-link"
aria-label="{{ ::text.text_jump_to_pagination }}" link-aria-label="{{ ::text.text_jump_to_pagination }}"
execute="setAnchorToNextElement()"> execute="setAnchorToNextElement()">
<span ng-bind="::text.jump_to_pagination"></span> <span ng-bind="::text.jump_to_pagination"></span>
</accessible-by-keyboard> </accessible-by-keyboard>

@ -22,7 +22,7 @@
class="inplace-editing--trigger-container" class="inplace-editing--trigger-container"
span-class="inplace-editing--container" span-class="inplace-editing--container"
link-class="inplace-editing--trigger-link" link-class="inplace-editing--trigger-link"
aria-label="{{ ::vm.text.editTitle }}" link-aria-label="{{ ::vm.text.editTitle }}"
execute="vm.activate()" execute="vm.activate()"
focus="vm.shouldFocus()"> focus="vm.shouldFocus()">
<span class="inplace-edit--read-value -default"> <span class="inplace-edit--read-value -default">

@ -59,7 +59,6 @@ export class CellBuilder {
text = cellEmptyPlaceholder; text = cellEmptyPlaceholder;
} else { } else {
text = field.valueString; text = field.valueString;
span.setAttribute('aria-label', `${field.label} ${text}`);
} }
field.render(span, text); field.render(span, text);

@ -40,7 +40,7 @@
<div class="grid-content medium-2 collapse wp-relations-controls-section" <div class="grid-content medium-2 collapse wp-relations-controls-section"
ng-class="{ '-visible': $ctrl.userInputs.showRelationControls, '-expanded': $ctrl.userInputs.showRelationInfo }"> ng-class="{ '-visible': $ctrl.userInputs.showRelationControls, '-expanded': $ctrl.userInputs.showRelationInfo }">
<accessible-by-keyboard ng-show="$ctrl.showDescriptionInfo" <accessible-by-keyboard ng-show="$ctrl.showDescriptionInfo"
aria-label="{{ ::$ctrl.text.description_label }}" link-aria-label="{{ ::$ctrl.text.description_label }}"
link-title="{{ ::$ctrl.text.description_label }}" link-title="{{ ::$ctrl.text.description_label }}"
link-class="wp-relations--description-btn" link-class="wp-relations--description-btn"
execute="$ctrl.userInputs.showRelationInfo = !$ctrl.userInputs.showRelationInfo"> execute="$ctrl.userInputs.showRelationInfo = !$ctrl.userInputs.showRelationInfo">
@ -52,7 +52,7 @@
<accessible-by-keyboard ng-if="$ctrl.relation.delete" <accessible-by-keyboard ng-if="$ctrl.relation.delete"
execute="$ctrl.removeRelation($ctrl.relation)" execute="$ctrl.removeRelation($ctrl.relation)"
aria-hidden="false" aria-hidden="false"
aria-label="{{ ::$ctrl.text.remove }}" link-aria-label="{{ ::$ctrl.text.remove }}"
link-title="{{ ::$ctrl.text.remove }}" link-title="{{ ::$ctrl.text.remove }}"
link-class="relation-row--remove-btn" link-class="relation-row--remove-btn"
class="-shown-in-accessibility-mode"> class="-shown-in-accessibility-mode">

@ -1,9 +1,10 @@
<div class="generic-table--sort-header-outer"> <div class="generic-table--sort-header-outer" aria-hidden="true">
<span class="hierarchy-header--outer-span" ng-if="isHierarchyColumn"> <span class="hierarchy-header--outer-span" ng-if="isHierarchyColumn">
<accessible-by-keyboard execute="toggleHierarchy($event)" <accessible-by-keyboard execute="toggleHierarchy($event)"
aria-label="{{ ::I18n.t('js.work_packages.hierarchy.toggle_button') }}" link-aria-label="{{ text.toggleHierarchy }}"
link-class="hierarchy-header--icon" link-class="hierarchy-header--icon"
span-class="icon icon-show-more"> span-class="icon icon-show-more"
aria-hidden="true">
</accessible-by-keyboard> </accessible-by-keyboard>
<a href="javascript://" <a href="javascript://"
class="hierarchy-header--sort-title" class="hierarchy-header--sort-title"
@ -13,10 +14,9 @@
lang="{{locale}}" lang="{{locale}}"
id="{{ headerName }}">{{headerTitle}}</a> id="{{ headerName }}">{{headerTitle}}</a>
<a ng-if="!sortable">{{headerTitle}}</a> <a ng-if="!sortable">{{headerTitle}}</a>
<label class="hidden-for-sighted" aria-hidden="true" for="{{ headerTitle }}"> {{ fullTitle }} </label>
<icon-wrapper css-class="dropdown-indicator icon-small" <icon-wrapper css-class="dropdown-indicator icon-small"
icon-name="pulldown" icon-name="pulldown"
title="{{I18n.t('js.label_open_menu')}}"></icon-wrapper> title="{{ text.openMenu }}"></icon-wrapper>
</span> </span>
<span class="generic-table--sort-header" ng-if="!isHierarchyColumn"> <span class="generic-table--sort-header" ng-if="!isHierarchyColumn">
<a href="javascript://" <a href="javascript://"
@ -26,9 +26,8 @@
lang="{{locale}}" lang="{{locale}}"
id="{{ headerName }}">{{headerTitle}}</a> id="{{ headerName }}">{{headerTitle}}</a>
<a ng-if="!sortable">{{headerTitle}}</a> <a ng-if="!sortable">{{headerTitle}}</a>
<label class="hidden-for-sighted" aria-hidden="true" for="{{ headerTitle }}"> {{ fullTitle }} </label>
<icon-wrapper css-class="dropdown-indicator icon-small" <icon-wrapper css-class="dropdown-indicator icon-small"
icon-name="pulldown" icon-name="pulldown"
title="{{I18n.t('js.label_open_menu')}}"></icon-wrapper> title="{{ text.openMenu }}"></icon-wrapper>
</span> </span>
</div> </div>

@ -68,6 +68,11 @@ function sortHeader(wpTableHierarchy: WorkPackageTableHierarchyService){
return false; return false;
} }
scope.text = {
toggleHierarchy: I18n.t('js.work_packages.hierarchy.toggle_button'),
openMenu: I18n.t('js.label_open_menu')
};
function setFullTitleAndSummary() { function setFullTitleAndSummary() {
scope.fullTitle = scope.headerTitle; scope.fullTitle = scope.headerTitle;

@ -27,10 +27,11 @@
ng-class="column.name == 'id' && '-short' "> ng-class="column.name == 'id' && '-short' ">
</th> </th>
<th class="wp-table--details-column -short hide-when-print"> <th class="wp-table--details-column -short hide-when-print">
<div class="generic-table--sort-header-outer"> <div class="generic-table--sort-header-outer" aria-hidden="true">
<accessible-by-keyboard <accessible-by-keyboard
execute="openColumnsModal()" execute="openColumnsModal()"
link-class="wp-table--columns-selection"> link-class="wp-table--columns-selection"
link-aria-label="{{ text.addColumns }}">
<span class="icon-button icon-small icon-add"></span> <span class="icon-button icon-small icon-add"></span>
</accessible-by-keyboard> </accessible-by-keyboard>
</div> </div>
@ -51,8 +52,6 @@
</div> </div>
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody class="work-package--empty-tbody" ng-if="query.hasError || rowcount === 0"> <tbody class="work-package--empty-tbody" ng-if="query.hasError || rowcount === 0">

@ -188,6 +188,7 @@ function WorkPackagesTableController($scope:any, $rootScope:ng.IRootScopeService
title: I18n.t('js.work_packages.faulty_query.title'), title: I18n.t('js.work_packages.faulty_query.title'),
description: I18n.t('js.work_packages.faulty_query.description') description: I18n.t('js.work_packages.faulty_query.description')
}, },
addColumns: I18n.t('js.label_add_columns'),
tableSummary: I18n.t('js.work_packages.table.summary'), tableSummary: I18n.t('js.work_packages.table.summary'),
tableSummaryHints: [ tableSummaryHints: [
I18n.t('js.work_packages.table.text_inline_edit'), I18n.t('js.work_packages.table.text_inline_edit'),

@ -5,10 +5,8 @@
<span class="inplace-editing--container"> <span class="inplace-editing--container">
<span class="inplace-edit--read-value" > <span class="inplace-edit--read-value" >
<span data-ng-class="{'deleting': $ctrl.state.deleting}"> <span data-ng-class="{'deleting': $ctrl.state.deleting}">
<a ng-href="{{ $ctrl.watcher.showUser.href }}" <a ng-href="{{ $ctrl.watcher.showUser.href }}">
title="{{ $ctrl.watcher.name }}">
<img ng-attr-src="{{ $ctrl.watcher.avatar }}" <img ng-attr-src="{{ $ctrl.watcher.avatar }}"
ng-attr-alt="{{ $ctrl.watcher.name }}"
ng-show="$ctrl.watcher.avatar" ng-show="$ctrl.watcher.avatar"
class="avatar-mini"> class="avatar-mini">
<span class="work-package--watcher-name">{{ $ctrl.watcher.name }}</span> <span class="work-package--watcher-name">{{ $ctrl.watcher.name }}</span>
@ -16,7 +14,7 @@
</span> </span>
</span> </span>
<accessible-by-keyboard execute="$ctrl.remove()" <accessible-by-keyboard execute="$ctrl.remove()"
aria-label="{{ ::$ctrl.text.remove }}" link-aria-label="{{ ::$ctrl.text.remove }}"
link-title="{{ ::$ctrl.text.remove }}" link-title="{{ ::$ctrl.text.remove }}"
link-class="inplace-edit--icon-wrapper remove-watcher-btn"> link-class="inplace-edit--icon-wrapper remove-watcher-btn">
<icon-wrapper icon-name="remove" <icon-wrapper icon-name="remove"

@ -3,7 +3,7 @@
class='{{ linkClass }}' class='{{ linkClass }}'
ng-disabled="isDisabled" ng-disabled="isDisabled"
title='{{ linkTitle }}' title='{{ linkTitle }}'
aria-label="{{ ariaLabel }}" aria-label="{{ linkAriaLabel }}"
data-click-on-keypress="[13, 32]" data-click-on-keypress="[13, 32]"
href> href>
<span ng-transclude class='{{ spanClass }}'></span> <span ng-transclude class='{{ spanClass }}'></span>

@ -14,12 +14,12 @@
</select> </select>
</td> </td>
<td class="table-buttons" align="center" valign="middle"> <td class="table-buttons" align="center" valign="middle">
<label class="hidden-for-sighted" for="add_selected_columns">{{ I18n.t('js.label_add_columns') }}</label> <label class="hidden-for-sighted" for="add_selected_columns">{{ I18n.t('js.label_add_selected_columns') }}</label>
<input id="add_selected_columns" <input id="add_selected_columns"
type="button" type="button"
value="→" value="→"
ng-click="showColumns(markedAvailableColumns)" ng-click="showColumns(markedAvailableColumns)"
title="{{ I18n.t('js.label_add_columns') }}" title="{{ I18n.t('js.label_add_selected_columns') }}"
ng-disabled="loading"><br> ng-disabled="loading"><br>
<label class="hidden-for-sighted" for="add_selected_columns">{{ I18n.t('js.label_remove_columns') }}</label> <label class="hidden-for-sighted" for="add_selected_columns">{{ I18n.t('js.label_remove_columns') }}</label>
<input type="button" <input type="button"

@ -36,7 +36,7 @@ module.exports = function() {
linkClass: '@', linkClass: '@',
linkTitle: '@', linkTitle: '@',
spanClass: '@', spanClass: '@',
ariaLabel: '@' linkAriaLabel: '@'
}, },
templateUrl: '/templates/components/accessible_by_keyboard.html' templateUrl: '/templates/components/accessible_by_keyboard.html'
}; };

Loading…
Cancel
Save