You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
2.2 KiB

8 years ago
  1. <ion-view view-title="{{'User' | translate}} {{user.username}}">
  2. <ion-content>
  3. <div class="item item-avatar">
  4. <img ng-src="img/avatars/{{user.avatar}}.png" />
  5. <h2>{{user.username}}</h2>
  6. </div>
  7. <div class="item item-body">
  8. <p class="o-bold">{{user.description}}</p>
  9. <p>{{user.mail}}</p>
  10. <p>
  11. <img class='o-imgMenu' src="img/telegram.png" /> @{{user.telegram}}
  12. </p>
  13. <div class="o-text-right">
  14. <b>favs:</b>
  15. <span class="o-badge-calm">{{user.favs.length}}</span>
  16. <br>
  17. <div ng-show="storageusername && storageusername!=user.username">
  18. <a ng-show="arrayObjectIndexOf(user.favs, storageusername, 'username')==-1" ng-click="favUser()" class="button button-calm o-pull-right">+1</a>
  19. <a ng-show="arrayObjectIndexOf(user.favs, storageusername, 'username')!=-1" ng-click="unfavUser()" class="button button-assertive o-pull-right">unfav</a>
  20. </div>
  21. <!--<a ng-repeat="join in user.favs" ng-href="#/app/users/{{join.joinedUsername}}" class="button button-small button-dark">
  22. <img ng-src="img/avatars/{{join.joinedAvatar}}.png" class="o-img-joined" />{{join.joinedUsername}}<br>
  23. </a>-->
  24. </div>
  25. </div>
  26. <div class="item item-body">
  27. {{'history_of' | translate}} {{user.username}}:
  28. <div class="positive">{{travels.length}} {{'publications' | translate}}</div>
  29. <a ng-repeat="travel in travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}">
  30. <img ng-src="img/{{travel.modality}}.png">
  31. <h2>{{travel.title}}
  32. <div class="item-note">
  33. <div class="positive">{{travel.date | date:"dd/MM HH:mm a"}}</div>
  34. </div>
  35. </h2>
  36. <div class="item-note">
  37. <p class="" ng-show="travel.modality=='offering'">{{'n_Seats' | translate}}: {{travel.seats}}</p>
  38. <p class="" ng-show="travel.modality=='asking'">{{'n_People' | translate}}: {{travel.seats}}</p>
  39. </div>
  40. <p>
  41. {{travel.description}}
  42. </p>
  43. </a>
  44. </div>
  45. </ion-content>
  46. </ion-view>