mirror of
https://github.com/arnaucube/commonroutesApp.git
synced 2026-02-07 11:36:42 +01:00
notification system fixed
This commit is contained in:
@@ -1,12 +1,22 @@
|
||||
<ion-view view-title="{{'Notifications' | translate}}">
|
||||
<ion-content class="has-footer">
|
||||
<ion-refresher
|
||||
pulling-text="{{'Pull_to_refresh' | translate}}..."
|
||||
on-refresh="doRefresh()">
|
||||
</ion-refresher>
|
||||
<a ng-repeat="notification in notifications | orderBy: '-date'"
|
||||
class="item item-icon-left" href="#/app/{{notification.link}}">
|
||||
<i class="icon ion-android-notifications-none"></i>
|
||||
<ion-refresher pulling-text="{{'Pull_to_refresh' | translate}}..." on-refresh="doRefresh()">
|
||||
</ion-refresher>
|
||||
<div ng-show="!notifications[0]" class="item">
|
||||
No notifications yet
|
||||
</div>
|
||||
<a ng-repeat="notification in notifications | orderBy: '-date'" ng-show="notification.state=='pendent'"
|
||||
class="item item-icon-left c_deepPurple100" href="#/app/{{notification.link}}">
|
||||
<i ng-show="notification.state=='pendent'" class="icon ion-android-notifications-none o_text_purple600"></i>
|
||||
<h2>{{notification.message}}</h2>
|
||||
<div class="item-note text-right">
|
||||
<div class="o_text_purple600">{{notification.date | date:"dd/MM"}}</div>
|
||||
<div class="o_text_purple600">{{notification.date | date:"HH:mm:ss"}}</div>
|
||||
</div>
|
||||
</a>
|
||||
<a ng-repeat="notification in notifications | orderBy: '-date'" ng-show="notification.state=='viewed'"
|
||||
class="item item-icon-left" href="#/app/{{notification.link}}">
|
||||
<i ng-show="notification.state=='viewed'" class="icon ion-android-notifications-none"></i>
|
||||
<h2>{{notification.message}}</h2>
|
||||
<div class="item-note text-right">
|
||||
<div class="o_text_purple600">{{notification.date | date:"dd/MM"}}</div>
|
||||
|
||||
Reference in New Issue
Block a user