mirror of
https://github.com/arnaucube/openEventsPlatformApp.git
synced 2026-02-07 03:36:44 +01:00
alert system implemented
This commit is contained in:
34
www/templates/alerts.html
Normal file
34
www/templates/alerts.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<ion-view view-title="Emergency alerts">
|
||||
<ion-content class="c_red200">
|
||||
<ion-refresher pulling-text="{{'Pull_to_refresh' | translate}}..." on-refresh="doRefresh()">
|
||||
</ion-refresher>
|
||||
<div class="card" ng-repeat="event in events">
|
||||
<a class="item item-avatar" ng-href="#/app/users/{{event.user._id}}">
|
||||
<img ng-src="{{event.user.img}}">
|
||||
<h2>{{event.user.username}}</h2>
|
||||
<p>{{event.user.shortDescription}}</p>
|
||||
</a>
|
||||
<a ng-href="#/app/events/{{event._id}}" class="item item-text-wrap">
|
||||
<h2>{{event.title}}</h2>
|
||||
<p>{{event.description}}</p>
|
||||
<p>{{event.date | date: 'HH:mm, dd/MM/yyyy'}}</p>
|
||||
</a>
|
||||
<div class="item tabs tabs-icon-only">
|
||||
<a class="tab-item" ng-click="share(event)">
|
||||
<i class="icon ion-android-share-alt"></i>
|
||||
</a>
|
||||
<a class="tab-item">
|
||||
|
||||
</a>
|
||||
<a class="tab-item" ng-click="unsaveEvent(event)"
|
||||
ng-show="isEventSaved(event)">
|
||||
<i class="icon ion-heart ctext_red600"></i>
|
||||
</a>
|
||||
<a class="tab-item" ng-click="saveEvent(event)"
|
||||
ng-hide="isEventSaved(event)">
|
||||
<i class="icon ion-heart"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
@@ -2,19 +2,24 @@
|
||||
<ion-content class="c_blueGrey100">
|
||||
<ion-refresher pulling-text="{{'Pull_to_refresh' | translate}}..." on-refresh="doRefresh()">
|
||||
</ion-refresher>
|
||||
<a href="#/app/alerts" class="item item-icon-left c_red400"
|
||||
ng-show="alerts">
|
||||
<i class="icon ion-android-alert"></i> <b>{{alerts.length}}</b> Emergency alerts!
|
||||
</a>
|
||||
<div class="card" ng-repeat="event in events">
|
||||
<a class="item item-avatar" ng-href="#/app/users/{{event.user._id}}">
|
||||
<img ng-src="{{event.user.img}}">
|
||||
<h2>{{event.user.username}}</h2>
|
||||
<p>{{event.user.shortDescription}}</p>
|
||||
</a>
|
||||
<a ng-href="#/app/events/{{event._id}}" class="item item-image">
|
||||
<img ng-src="{{event.img}}">
|
||||
<div style="text-align: left; padding: 20px;">
|
||||
<h2>{{event.title}}</h2>
|
||||
<p>{{event.description}}</p>
|
||||
<p>{{event.date | date: 'HH:mm, dd/MM/yyyy'}}</p>
|
||||
</div>
|
||||
<a ng-href="#/app/events/{{event._id}}" class="item item-image"
|
||||
ng-show="event.img">
|
||||
<img ng-src="{{event.img}}">
|
||||
</a>
|
||||
<a ng-href="#/app/events/{{event._id}}" class="item item-text-wrap">
|
||||
<h2>{{event.title}}</h2>
|
||||
<p>{{event.description}}</p>
|
||||
<p>{{event.date | date: 'HH:mm, dd/MM/yyyy'}}</p>
|
||||
</a>
|
||||
<div class="item tabs tabs-icon-only">
|
||||
<a class="tab-item" ng-click="share(event)">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="row o_mainOptionRow">
|
||||
<a class="col c_indigo300" ng-href="#/app/savedEvents">
|
||||
<a class="col 0 c_yellow600" ng-href="#/app/savedEvents">
|
||||
<i class="icon ion-heart"></i>
|
||||
</a>
|
||||
<a class="col c_green400" ng-href="#/app/byplace">
|
||||
@@ -17,7 +17,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="row o_mainOptionRow">
|
||||
<a class="col c_yellow600" ng-href="#/app/search">
|
||||
<a class="col c_deepPurple400" ng-href="#/app/search">
|
||||
<i class="icon ion-search"></i>
|
||||
</a>
|
||||
<a class="col c_cyan400" ng-href="#/app/bycategories">
|
||||
@@ -25,7 +25,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="row o_mainOptionRow">
|
||||
<a class="col c_deepPurple400" ng-href="#/app/bydate">
|
||||
<a class="col c_indigo300" ng-href="#/app/bydate">
|
||||
<i class="icon ion-calendar"></i><!--by date-->
|
||||
</a>
|
||||
<a class="col c_orange400" ng-href="#/app/settings">
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<ion-side-menu side="left">
|
||||
<ion-header-bar class="bar-stable">
|
||||
<h1 class="title">Left</h1>
|
||||
<h1 class="title">Menu</h1>
|
||||
</ion-header-bar>
|
||||
<ion-content>
|
||||
<ion-list>
|
||||
|
||||
Reference in New Issue
Block a user