mirror of
https://github.com/arnaucube/commonroutesApp.git
synced 2026-02-07 19:46:44 +01:00
notification system almost implemented at the app
This commit is contained in:
@@ -32,6 +32,11 @@
|
||||
<img class='o-imgMenu' src="img/users.png" />
|
||||
{{'Users' | translate }}
|
||||
</ion-item>
|
||||
<ion-item menu-close href="#/app/notifications/{{storageusername}}" ng-show="storageusername">
|
||||
<img class='o-imgMenu' src="img/notification.png" />
|
||||
{{'Notifications' | translate }}
|
||||
<span class="badge badge-positive">{{userdata.notifications.length}}</span>
|
||||
</ion-item>
|
||||
<ion-item menu-close href="#/app/users/{{storageusername}}" ng-show="storageusername">
|
||||
<img class='o-imgMenu' ng-src="img/avatars/{{storageavatar}}.png" />
|
||||
{{storageusername}}
|
||||
|
||||
14
www/templates/notifications.html
Normal file
14
www/templates/notifications.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<ion-view view-title="{{'Notifications' | translate}} {{user.username}}">
|
||||
<ion-content>
|
||||
<div class="item item-body">
|
||||
<a ng-repeat="notification in notifications | orderBy: '-date'" class="item item-avatar" href="#/app/{{notification.link}}">
|
||||
<img ng-src="img/{{notification.type}}.png"/>
|
||||
<h2>{{notification.description}}</h2>
|
||||
<div class="item-note text-right">
|
||||
<div class="positive">{{notification.date | date:"dd/MM"}}</div>
|
||||
<div class="positive">{{notification.date | date:"HH:mm:ss"}}</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
@@ -10,7 +10,7 @@
|
||||
</select>
|
||||
</label>
|
||||
<p>
|
||||
version: CarsInCommon-v011
|
||||
version: CarsInCommon-v012
|
||||
</p>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
|
||||
Reference in New Issue
Block a user