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.

63 lines
2.6 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="o_userProfileBackground">
  4. <img ng-src="{{user.avatar}}" class="o_userImgCircular" />
  5. <h3>{{user.username}}</h3>
  6. <p>{{user.description}}</p>
  7. <p>{{user.email}}</p>
  8. </div>
  9. <div class="">
  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">
  35. <img src="img/faircoinpublickey_sample.png" style="width: 100%;" />
  36. </div>
  37. <div class="item item-body">
  38. {{'current_publications_of' | translate}} {{user.username}}:
  39. <div class="o_text_purple600">{{user.travels.length}} {{'publications' | translate}}</div>
  40. <a ng-repeat="travel in user.travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}">
  41. <img ng-src="img/{{travel.type}}.png">
  42. <h2>{{travel.title}}
  43. <div class="item-note">
  44. <div class="o_text_purple400">{{travel.date | date:"HH:mm a"}}</div>
  45. <div class="o_text_purple400">{{travel.date | date:"dd/MM/yyyy"}}</div>
  46. </div>
  47. </h2>
  48. <div class="item-note">
  49. <p class="" ng-show="travel.modality=='offering'">{{'n_Seats' | translate}}: {{travel.seats}}</p>
  50. <p class="" ng-show="travel.modality=='asking'">{{'n_People' | translate}}: {{travel.seats}}</p>
  51. </div>
  52. <p>
  53. {{travel.description}}
  54. </p>
  55. </a>
  56. </div>
  57. </ion-content>
  58. </ion-view>