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/common/notification-box/notification-box.directive....

46 lines
1.8 KiB

<div class="notification-box{{' -' + content.type}}" tabindex="0">
<div class="notification-box--content" role="alert" aria-atomic="true">
<p>
<span>{{::content.message}}</span>
<a class="notification-box--target-link"
ng-click="executeTarget()"
ng-if="!!content.link"
ng-bind="content.link.text">
</a>
</p>
<div data-ng-switch="content.type" data-ng-if="typeable()">
<div data-ng-switch-when="upload">
<div data-ng-show="canBeHidden()">
<a data-ng-click="show = true" data-ng-hide="show">
<i class="icon-arrow-right2"></i>
</a>
<a data-ng-click="show = false" data-ng-show="show">
<i class="icon-arrow-down1"></i>
</a>
<span>
{{::I18n.t('js.label_upload_counter', { done: uploadCount, count: content.uploads.length})}}
</span>
</div>
<div data-ng-show="show || !canBeHidden()">
<ul class="notification-box--uploads" data-ng-show="content.uploads.length > 0">
<upload-progress data-upload="upload" data-ng-repeat="upload in content.uploads"></upload-progress>
</ul>
</div>
</div>
<div data-ng-switch-when="success">
<!-- "create another" button -->
</div>
<div data-ng-switch-when="error">
<ul class="notification-box--errors">
<li data-ng-repeat="error in content.errors track by $index">{{error}}</li>
</ul>
<!-- "continue editing" button -->
</div>
</div>
</div>
<accessible-by-keyboard ng-if="removable()"
execute="remove()"
link-title="{{ ::I18n.t('js.close_popup_title') }}"
link-class="notification-box--close icon-context icon-close">
</accessible-by-keyboard>
</div>