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.

113 lines
5.2 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <div class="container">
  2. <div class="row">
  3. <div class="col-sm-4">
  4. <div class="panel">
  5. <div class="panel-heading c_deepPurpleG500to300">
  6. <h3 class="panel-title">User profile</h3>
  7. </div>
  8. <div class="panel-body">
  9. <div class="list-group">
  10. <a class="list-group-item">
  11. <div class="row-picture">
  12. <img class="circle" ng-src="{{user.avatar}}" alt="icon">
  13. </div>
  14. <div class="row-content">
  15. <h4 class="list-group-item-heading">
  16. {{user.username}} <i ng-show="user.validated" class="fa fa-check-circle ct_blue300" title="user validated"></i>
  17. </h4>
  18. <p class="list-group-item-text">{{user.description}}</p>
  19. </div>
  20. </a>
  21. </div>
  22. <p>
  23. {{user.email}}
  24. </p>
  25. <p>
  26. <a ng-show="user.telegram" ng-href="https://t.me/{{user.telegram}}" target="_blank" class="ct_deepPurple300">
  27. <i class="fa fa-telegram fa-2x"></i> @{{user.telegram}}
  28. </a>
  29. </p>
  30. <p ng-show="user.phone">
  31. <i class="fa fa-phone fa-2x"></i> {{user.phone}}
  32. </p>
  33. </div>
  34. <div class="text-right">
  35. <a ng-href="#!/userLikes/{{user._id}}" class="ct_deepPurple300">
  36. {{user.likes.length}} likes
  37. </a>
  38. <div ng-show="arrayObjectIndexOf(user.likes, storageuser._id)==-1"
  39. ng-click="likeUser()" class="btn" title="click to like user">
  40. <i class="fa fa-heart fa-2x"></i> Like
  41. </div>
  42. <div ng-show="arrayObjectIndexOf(user.likes, storageuser._id)>-1"
  43. ng-click="unlikeUser()" class="btn" title="click to unlike user">
  44. <i class="fa fa-heart fa-2x ctext_red600"></i> Unlike
  45. </div>
  46. </div>
  47. <div class="panel-body">
  48. <img ng-src="{{user.faircoin}}" class="img-responsive">
  49. {{user.faircoinString}}
  50. </div>
  51. </div>
  52. </div>
  53. <div class="col-sm-8">
  54. <div class="row">
  55. <div class="col-sm-6">
  56. <div ng-repeat="travel in user.travels" ng-if="$index % 2 == 0">
  57. <a ng-href="#!/travel/{{travel._id}}">
  58. <div ng-include="'views/travelCardTemplate.html'"></div>
  59. </a>
  60. <br>
  61. </div>
  62. </div>
  63. <div class="col-sm-6">
  64. <div ng-repeat="travel in user.travels" ng-if="$index % 2 == 1">
  65. <a ng-href="#!/travel/{{travel._id}}">
  66. <div ng-include="'views/travelCardTemplate.html'"></div>
  67. </a>
  68. <br>
  69. </div>
  70. </div>
  71. </div>
  72. <!--<div class="panel">
  73. <div class="panel-heading c_deepPurpleG500to300">
  74. <h3 class="panel-title">User travels</h3>
  75. </div>
  76. <div class="panel-body">
  77. <table class="table table-striped table-hover ">
  78. <thead>
  79. <tr>
  80. <th>Type</th>
  81. <th>Title</th>
  82. <th>Date</th>
  83. <th>User</th>
  84. <th>nºJoins</th>
  85. <th></th>
  86. </tr>
  87. </thead>
  88. <tbody>
  89. <tr ng-repeat="travel in user.travels">
  90. <td>
  91. <i ng-show="travel.type=='offering'" class="fa fa-car fa-2x"></i>
  92. <i ng-show="travel.type=='asking'" class="fa fa-question fa-2x"></i>
  93. <i ng-show="travel.type=='package'" class="fa fa-archive fa-2x"></i>
  94. </td>
  95. <td>{{travel.title}}</td>
  96. <td>{{travel.date | date}}</td>
  97. <td>
  98. <a ng-href="#!/user/{{travel.user._id}}">
  99. {{travel.user.username}}
  100. </a>
  101. </td>
  102. <td>{{travel.joins.length}}</td>
  103. <td><a ng-href="#!/travel/{{travel._id}}">View</a></td>
  104. </tr>
  105. </tbody>
  106. </table>
  107. </div>
  108. </div>-->
  109. </div>
  110. </div>
  111. </div>