arnaucube
arnaucube/commonroutesAppPublic Self-hosted repository
commonroutesApp/www/templates/notifications.html
www/templates/notifications.htmlRaw
 1<ion-view view-title="{{'Notifications' | translate}}">
 2  <ion-content class="has-footer">
 3    <ion-refresher pulling-text="{{'Pull_to_refresh' | translate}}..." on-refresh="doRefresh()">
 4    </ion-refresher>
 5    <div ng-show="!notifications[0]" class="item">
 6        No notifications yet
 7    </div>
 8    <a ng-repeat="notification in notifications | orderBy: '-date'"  ng-show="notification.state=='pendent'"
 9    class="item item-icon-left c_deepPurple100" href="#/app/{{notification.link}}">
10        <i ng-show="notification.state=='pendent'" class="icon ion-android-notifications-none o_text_purple600"></i>
11        <h2>{{notification.message}}</h2>
12        <div class="item-note text-right">
13            <div class="o_text_purple600">{{notification.date | date:"dd/MM"}}</div>
14            <div class="o_text_purple600">{{notification.date | date:"HH:mm:ss"}}</div>
15        </div>
16      </a>
17    <a ng-repeat="notification in notifications | orderBy: '-date'"  ng-show="notification.state=='viewed'"
18    class="item item-icon-left" href="#/app/{{notification.link}}">
19        <i ng-show="notification.state=='viewed'" class="icon ion-android-notifications-none"></i>
20        <h2>{{notification.message}}</h2>
21        <div class="item-note text-right">
22            <div class="o_text_purple600">{{notification.date | date:"dd/MM"}}</div>
23            <div class="o_text_purple600">{{notification.date | date:"HH:mm:ss"}}</div>
24        </div>
25      </a>
26  </ion-content>
27</ion-view>