1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/assets/templates/notifications/index.html.erb

94 lines
2.7 KiB
Plaintext
Raw Normal View History

2015-05-05 03:10:25 +02:00
<section class="heading b-b">
<div class="row no-gutter">
<div class="col-xs-2 col-sm-2 col-md-1">
<section class="heading-btn">
<a href="#" ng-click="backPrevLocation($event)"><i class="fa fa-long-arrow-left "></i></a>
</section>
</div>
<div class="col-xs-10 col-sm-10 col-md-8 b-l">
<section class="heading-title">
2016-03-23 18:39:41 +01:00
<h1 translate>{{ 'notifications_center' }}</h1>
2015-05-05 03:10:25 +02:00
</section>
</div>
</div>
</section>
<section class="m-lg">
<div class="row">
<div class="col-md-12">
<button type="button" class="btn btn-warning m-t-sm m-b" ng-click="markAllAsRead()" ng-disabled="totalUnread == 0">{{ 'mark_all_as_read' | translate }} ({{totalUnread}})</button>
2015-05-05 03:10:25 +02:00
<table class="table">
<thead>
<tr>
<th style="width:10%"></th>
2016-03-23 18:39:41 +01:00
<th style="width:20%" translate>{{ 'date' }}</th>
<th style="width:70%" translate>{{ 'notif_title' }}</th>
2015-05-05 03:10:25 +02:00
</tr>
</thead>
<tbody>
<tr ng-repeat="notification in notificationsUnread" ng-if="notificationsUnread.length > 0">
2015-05-05 03:10:25 +02:00
<td>
<button class="btn btn-sm btn-warning" ng-click="markAsRead(notification, $event)">
<i class="fa fa-check"></i>
</button>
</td>
2016-03-23 18:39:41 +01:00
<td>{{ notification.created_at | amDateFormat:'LLL' }}</td>
2015-05-05 03:10:25 +02:00
<td ng-bind-html="notification.message.description"></td>
</tr>
<tr ng-if="notificationsUnread.length == 0">
2016-03-23 18:39:41 +01:00
<td colspan="3" translate>{{ 'no_new_notifications' }}</td>
2015-05-05 03:10:25 +02:00
</tr>
</tbody>
</table>
<div ng-hide="notificationsRead.length == 0 && notificationsUnread.length < total">
<h5 translate>{{ 'archives' }}</h5>
2015-05-05 03:10:25 +02:00
<table class="table">
<thead>
<tr>
<th style="width:10%"></th>
<th style="width:20%"></th>
<th style="width:70%"></th>
2016-03-23 18:39:41 +01:00
</tr>
</thead>
<tbody>
2015-05-05 03:10:25 +02:00
2016-03-23 18:39:41 +01:00
2015-05-05 03:10:25 +02:00
<tr class="read" ng-repeat="n in notificationsRead | orderBy:'created_at':true" ng-if="notificationsRead.length > 0">
<td>
</td>
<td>{{ n.created_at | amDateFormat:'LLL' }}</td>
<td ng-bind-html="n.message.description"></td>
2015-05-05 03:10:25 +02:00
</tr>
2015-05-05 03:10:25 +02:00
<tr ng-if="notificationsRead.length == 0">
<td colspan="3" translate>{{ 'no_archived_notifications' }}</td>
</tr>
2015-05-05 03:10:25 +02:00
</tbody>
</table>
</div>
2015-05-05 03:10:25 +02:00
<a class="btn btn-default" ng-click="addMoreNotifications()" ng-if="paginateActive" translate>{{ 'load_the_next_notifications' }}</a>
2015-05-05 03:10:25 +02:00
</div>
</div>
</section>