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.

57 lines
2.4 KiB

8 years ago
8 years ago
8 years ago
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="{{user.avatar}}" />
  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 ng-show="user.telegram">
  11. <!--<a ng-href="https://telegram.me/{{user.telegram}}" target="_blank" class="button">-->
  12. <img class='o-imgMenu' src="img/telegram.png" /> @{{user.telegram}}
  13. <!--</a>-->
  14. </p>
  15. <div class="o-text-right">
  16. <div ng-click="showFavsList()">
  17. <b>favs:</b>
  18. <span class="">{{user.favs.length}}</span>
  19. </div>
  20. <br>
  21. <div ng-show="storageusername && storageusername!=user.username">
  22. <a ng-show="arrayObjectIndexOf(user.favs, storageusername, 'username')==-1" ng-click="favUser()">
  23. <img class="o-imgMenu" src="img/unlike.png" />
  24. </a>
  25. <a ng-show="arrayObjectIndexOf(user.favs, storageusername, 'username')!=-1" ng-click="unfavUser()">
  26. <img class="o-imgMenu" src="img/like.png" />
  27. </a>
  28. </div>
  29. <!--<a ng-repeat="join in user.favs" ng-href="#/app/users/{{join.joinedUsername}}" class="button button-small button-dark">
  30. <img ng-src="img/avatars/{{join.joinedAvatar}}.png" class="o-img-joined" />{{join.joinedUsername}}<br>
  31. </a>-->
  32. </div>
  33. </div>
  34. <div class="item item-body">
  35. {{'current_publications_of' | translate}} {{user.username}}:
  36. <div class="positive">{{user.travels.length}} {{'publications' | translate}}</div>
  37. <a ng-repeat="travel in user.travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}">
  38. <img ng-src="img/{{travel.type}}.png">
  39. <h2>{{travel.title}}
  40. <div class="item-note">
  41. <div class="positive">{{travel.date | date:"dd/MM/yyyy HH:mm a"}}</div>
  42. </div>
  43. </h2>
  44. <div class="item-note">
  45. <p class="" ng-show="travel.modality=='offering'">{{'n_Seats' | translate}}: {{travel.seats}}</p>
  46. <p class="" ng-show="travel.modality=='asking'">{{'n_People' | translate}}: {{travel.seats}}</p>
  47. </div>
  48. <p>
  49. {{travel.description}}
  50. </p>
  51. </a>
  52. </div>
  53. </ion-content>
  54. </ion-view>