|
@ -23,23 +23,6 @@ |
|
|
<leaflet width="100%" height="40%" markers="markers" center="center" |
|
|
<leaflet width="100%" height="40%" markers="markers" center="center" |
|
|
tiles="tiles" id="map-simple-map"></leaflet> |
|
|
tiles="tiles" id="map-simple-map"></leaflet> |
|
|
|
|
|
|
|
|
<div ng-show="storageuser._id!=travel.user._id" class="text-right"> |
|
|
|
|
|
<p class='text-right'> |
|
|
|
|
|
<div ng-show="userHasJoined(travel.joinPetitions, storageuser._id)==-1"> |
|
|
|
|
|
<div ng-show="userHasJoined(travel.joins, storageuser._id)==-1"> |
|
|
|
|
|
<md-button ng-show="travel.type=='offering'" ng-click="joinTravel()" class="o_purple300">{{'Ask_to_join' | translate}}</md-button> |
|
|
|
|
|
<md-button ng-show="travel.type=='asking'" ng-click="joinTravel()" class="o_purple300">{{'Offer_car' | translate}}</md-button> |
|
|
|
|
|
<md-button ng-show="travel.type=='package'" ng-click="joinTravel()" class="o_purple300">{{'Offer_car' | translate}}</md-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div ng-show="userHasJoined(travel.joinPetitions, storageuser._id)>-1"> |
|
|
|
|
|
<md-button ng-show="travel.type=='offering'" ng-click="unjoinTravel()" class="o_purple100">{{'Unjoin' | translate}}</md-button> |
|
|
|
|
|
<md-button ng-show="travel.type=='asking'" ng-click="unjoinTravel()" class="o_purple100">{{'Unoffer_car' | translate}}</md-button> |
|
|
|
|
|
<md-button ng-show="travel.type=='package'" ng-click="unjoinTravel()" class="o_purple100">{{'Unoffer_car' | translate}}</md-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="item item-icon-left"> |
|
|
<div class="item item-icon-left"> |
|
|
<i class="icon ion-ios-location-outline"></i>From: {{travel.from.name}} |
|
|
<i class="icon ion-ios-location-outline"></i>From: {{travel.from.name}} |
|
|
</div> |
|
|
</div> |
|
@ -60,7 +43,29 @@ |
|
|
<div class="item item-icon-left" ng-show="travel.user.phone"> |
|
|
<div class="item item-icon-left" ng-show="travel.user.phone"> |
|
|
<i class="icon ion-ios-telephone"></i> {{travel.user.phone}} |
|
|
<i class="icon ion-ios-telephone"></i> {{travel.user.phone}} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div ng-show="storageuser._id!=travel.user._id" class="text-right"> |
|
|
|
|
|
<p class='text-right'> |
|
|
|
|
|
<div ng-show="userHasJoined(travel.joinPetitions, storageuser._id)==-1"> |
|
|
|
|
|
<div ng-show="userHasJoined(travel.joins, storageuser._id)==-1"> |
|
|
|
|
|
<md-button ng-show="travel.type=='offering'" ng-click="joinTravel()" class="o_purple300">{{'Ask_to_join' | translate}}</md-button> |
|
|
|
|
|
<md-button ng-show="travel.type=='asking'" ng-click="joinTravel()" class="o_purple300">{{'Offer_car' | translate}}</md-button> |
|
|
|
|
|
<md-button ng-show="travel.type=='package'" ng-click="joinTravel()" class="o_purple300">{{'Offer_car' | translate}}</md-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div ng-show="userHasJoined(travel.joinPetitions, storageuser._id)>-1"> |
|
|
|
|
|
<md-button ng-show="travel.type=='offering'" ng-click="unjoinTravel()" class="o_purple100">{{'Unjoin' | translate}}</md-button> |
|
|
|
|
|
<md-button ng-show="travel.type=='asking'" ng-click="unjoinTravel()" class="o_purple100">{{'Unoffer_car' | translate}}</md-button> |
|
|
|
|
|
<md-button ng-show="travel.type=='package'" ng-click="unjoinTravel()" class="o_purple100">{{'Unoffer_car' | translate}}</md-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div ng-show="userHasJoined(travel.joins, storageuser._id)>-1"> |
|
|
|
|
|
<md-button ng-show="travel.type=='offering'" ng-click="" class="o_bRed">{{'Leave' | translate}}</md-button> |
|
|
|
|
|
<md-button ng-show="travel.type=='asking'" ng-click="" class="o_purple100">{{'Leave' | translate}}</md-button> |
|
|
|
|
|
<md-button ng-show="travel.type=='package'" ng-click="" class="o_purple100">{{'Leave' | translate}}</md-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</p> |
|
|
|
|
|
</div> |
|
|
<div class="item item-body" ng-show="travel.collectivized"> |
|
|
<div class="item item-body" ng-show="travel.collectivized"> |
|
|
<div class='row'> |
|
|
<div class='row'> |
|
|
<div class='col o-text-right'> |
|
|
<div class='col o-text-right'> |
|
@ -78,9 +83,9 @@ |
|
|
<i class="icon ion-edit"></i> |
|
|
<i class="icon ion-edit"></i> |
|
|
</button>--> |
|
|
</button>--> |
|
|
<p>{{travel.joins.length}}/{{travel.seats}} seats</p> |
|
|
<p>{{travel.joins.length}}/{{travel.seats}} seats</p> |
|
|
<a ng-repeat="join in travel.joins" ng-href="#/app/users/{{join._id}}"> |
|
|
|
|
|
<img class="o_userImgCircularMini" ng-src="{{join.avatar}}"></img> |
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
<a ng-repeat="join in travel.joins" ng-href="#/app/users/{{join._id}}"> |
|
|
|
|
|
<img class="o_userImgCircularMini" ng-src="{{join.avatar}}"></img> |
|
|
|
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
|
<div ng-show="travel.joinPetitions.length>0"> |
|
|
<div ng-show="travel.joinPetitions.length>0"> |
|
|
<p>Pendent petitions</p> |
|
|
<p>Pendent petitions</p> |
|
|