|
|
<ion-view view-title="{{'User' | translate}} {{user.username}}"> <ion-content> <div class="item item-avatar"> <img ng-src="img/avatars/{{user.avatar}}.png" /> <h2>{{user.username}}</h2> </div> <div class="item item-body"> <p class="o-bold">{{user.description}}</p> <p>{{user.mail}}</p> <p> <img class='o-imgMenu' src="img/telegram.png" /> @{{user.telegram}} </p>
<div class="o-text-right"> <b>favs:</b> <span class="">{{user.favs.length}}</span> <br><br> <div ng-show="storageusername && storageusername!=user.username"> <a ng-show="arrayObjectIndexOf(user.favs, storageusername, 'username')==-1" ng-click="favUser()"> <img class="o-imgMenu" src="img/unlike.png" /> </a> <a ng-show="arrayObjectIndexOf(user.favs, storageusername, 'username')!=-1" ng-click="unfavUser()"> <img class="o-imgMenu" src="img/like.png" /> </a> </div> <!--<a ng-repeat="join in user.favs" ng-href="#/app/users/{{join.joinedUsername}}" class="button button-small button-dark">
<img ng-src="img/avatars/{{join.joinedAvatar}}.png" class="o-img-joined" />{{join.joinedUsername}}<br> </a>--> </div> </div> <div class="item item-body"> {{'history_of' | translate}} {{user.username}}: <div class="positive">{{travels.length}} {{'publications' | translate}}</div>
<a ng-repeat="travel in travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}"> <img ng-src="img/{{travel.modality}}.png"> <h2>{{travel.title}} <div class="item-note"> <div class="positive">{{travel.date | date:"dd/MM HH:mm a"}}</div> </div> </h2>
<div class="item-note"> <p class="" ng-show="travel.modality=='offering'">{{'n_Seats' | translate}}: {{travel.seats}}</p> <p class="" ng-show="travel.modality=='asking'">{{'n_People' | translate}}: {{travel.seats}}</p> </div> <p> {{travel.description}} </p> </a> </div> </ion-content> </ion-view>
|