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.

58 lines
2.5 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="o_text_purple600">{{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="o_text_purple400">{{travel.date | date:"HH:mm a"}}</div>
  42. <div class="o_text_purple400">{{travel.date | date:"dd/MM/yyyy"}}</div>
  43. </div>
  44. </h2>
  45. <div class="item-note">
  46. <p class="" ng-show="travel.modality=='offering'">{{'n_Seats' | translate}}: {{travel.seats}}</p>
  47. <p class="" ng-show="travel.modality=='asking'">{{'n_People' | translate}}: {{travel.seats}}</p>
  48. </div>
  49. <p>
  50. {{travel.description}}
  51. </p>
  52. </a>
  53. </div>
  54. </ion-content>
  55. </ion-view>