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/templates/components/notification-box.html

36 lines
1.4 KiB

<div class="notification-box{{' -' + content.type}}">
<a data-ng-click="remove()" data-ng-if="removable()" class="notification-box--close">&times;</a>
<div class="notification-box--content">
<p>{{content.message}}</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-right5"></i>
</a>
<a data-ng-click="show = false" data-ng-show="show">
<i class="icon-arrow-right5-2"></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">{{error}}</li>
</ul>
<!-- "continue editing" button -->
</div>
</div>
</div>
</div>