OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/frontend/app/components/context-menus/column-context-menu/column-context-menu.templat...

60 lines
2.3 KiB

<div id="column-context-menu"
class="dropdown-relative dropdown action-menu"
ng-class="{'dropdown-anchor-right': column && column.id !== 'id'}">
<ul class="dropdown-menu">
<li ng-if="isSortable">
<a class="menu-item" focus href="" ng-click="sortAscending()">
<op-icon icon-classes="icon-action-menu icon-sort-ascending"></op-icon>
<span ng-bind="I18n.t('js.work_packages.query.sort_ascending')"/>
</a>
</li>
<li ng-if="isSortable">
<a class="menu-item" href="" ng-click="sortDescending()">
<op-icon icon-classes="icon-action-menu icon-sort-descending"></op-icon>
<span ng-bind="I18n.t('js.work_packages.query.sort_descending')"/>
</a>
</li>
<li ng-if="isGroupable">
<a class="menu-item"
ng-class="{'inactive': isGroupableDisabled }"
focus="focusFeature('group')"
href=""
ng-attr-title="{{ isGroupableDisabled ? text.group_by_disabled_by_hierarchy : text.group_by }}"
ng-disabled="isGroupableDisabled"
ng-click="isGroupableDisabled || groupBy()">
<op-icon icon-classes="icon-action-menu icon-group-by"></op-icon>
<span ng-bind="text.group_by"/>
</a>
</li>
<li ng-if="canMoveLeft()">
<a class="menu-item" focus="focusFeature('moveLeft')" href="" ng-click="moveLeft()">
<op-icon icon-classes="icon-action-menu icon-column-left"></op-icon>
<span ng-bind="I18n.t('js.work_packages.query.move_column_left')"/>
</a>
</li>
<li ng-if="canMoveRight()">
<a class="menu-item" focus="focusFeature('moveRight')" href="" ng-click="moveRight()">
<op-icon icon-classes="icon-action-menu icon-column-right"></op-icon>
<span ng-bind="I18n.t('js.work_packages.query.move_column_right')"/>
</a>
</li>
<li ng-if="canBeHidden()">
<a class="menu-item" focus="focusFeature('hide')" href="" ng-click="hideColumn()">
<op-icon icon-classes="icon-action-menu icon-delete"></op-icon>
<span ng-bind="I18n.t('js.work_packages.query.hide_column')"/>
</a>
</li>
<li>
<a class="menu-item" focus="focusFeature('insert')" href="" ng-click="insertColumns()">
<op-icon icon-classes="icon-action-menu icon-columns"></op-icon>
<span ng-bind="I18n.t('js.work_packages.query.insert_columns')"/>
</a>
</li>
</ul>
</div>