|
|
<div class="container"> <div class="row"> <div class="col-sm-4"> <div class="panel"> <div class="panel-heading c_deepPurpleG500to300"> <h3 class="panel-title">User profile</h3> </div> <div class="panel-body"> <div class="list-group"> <a class="list-group-item"> <div class="row-picture"> <img class="circle" ng-src="{{user.avatar}}" alt="icon"> </div> <div class="row-content"> <h4 class="list-group-item-heading"> {{user.username}} <i ng-show="user.validated" class="fa fa-check-circle ct_blue300" title="user validated"></i> </h4>
<p class="list-group-item-text">{{user.description}}</p> </div> </a> </div> <p> {{user.email}} </p> <p> <a ng-show="user.telegram" ng-href="https://t.me/{{user.telegram}}" target="_blank" class="ct_deepPurple300"> <i class="fa fa-telegram fa-2x"></i> @{{user.telegram}} </a> </p> <p ng-show="user.phone"> <i class="fa fa-phone fa-2x"></i> {{user.phone}} </p> </div> <div class="text-right"> <a ng-href="#!/userLikes/{{user._id}}" class="ct_deepPurple300"> {{user.likes.length}} likes </a> <div ng-show="arrayObjectIndexOf(user.likes, storageuser._id)==-1" ng-click="likeUser()" class="btn" title="click to like user"> <i class="fa fa-heart fa-2x"></i> Like </div> <div ng-show="arrayObjectIndexOf(user.likes, storageuser._id)>-1" ng-click="unlikeUser()" class="btn" title="click to unlike user"> <i class="fa fa-heart fa-2x ctext_red600"></i> Unlike </div>
</div> <div class="panel-body"> <img ng-src="{{user.faircoin}}" class="img-responsive"> {{user.faircoinString}} </div> </div> </div> <div class="col-sm-8"> <div class="row"> <div class="col-sm-6"> <div ng-repeat="travel in user.travels" ng-if="$index % 2 == 0"> <a ng-href="#!/travel/{{travel._id}}"> <div ng-include="'views/travelCardTemplate.html'"></div> </a> <br> </div> </div> <div class="col-sm-6"> <div ng-repeat="travel in user.travels" ng-if="$index % 2 == 1"> <a ng-href="#!/travel/{{travel._id}}"> <div ng-include="'views/travelCardTemplate.html'"></div> </a> <br> </div> </div> </div> <!--<div class="panel">
<div class="panel-heading c_deepPurpleG500to300"> <h3 class="panel-title">User travels</h3> </div> <div class="panel-body"> <table class="table table-striped table-hover "> <thead> <tr> <th>Type</th> <th>Title</th> <th>Date</th> <th>User</th> <th>nºJoins</th> <th></th> </tr> </thead> <tbody> <tr ng-repeat="travel in user.travels"> <td> <i ng-show="travel.type=='offering'" class="fa fa-car fa-2x"></i> <i ng-show="travel.type=='asking'" class="fa fa-question fa-2x"></i> <i ng-show="travel.type=='package'" class="fa fa-archive fa-2x"></i> </td> <td>{{travel.title}}</td> <td>{{travel.date | date}}</td> <td> <a ng-href="#!/user/{{travel.user._id}}"> {{travel.user.username}} </a> </td> <td>{{travel.joins.length}}</td> <td><a ng-href="#!/travel/{{travel._id}}">View</a></td> </tr> </tbody> </table> </div> </div>--> </div> </div> </div>
|