Last active
December 25, 2015 19:09
-
-
Save AVVS/7026171 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="b-offer-item clear_fix" > | |
<div class="b-offer-item-human"> | |
<img ng-src="{{ offer.owner.photo || offer.owner.photo_50 }}" alt="{{ offer.owner.name || offer.owner.first_name + ' ' + offer.owner.last_name }}"> | |
<p><a href="//vk.com/{{ offer.owner.screen_name }}" target="_blank">{{ offer.owner.name || offer.owner.first_name + ' ' + offer.owner.last_name }}</a></p> | |
<p class="b-offer-item-human-status"> | |
<span ng-show="offer.owner.online == 1">Online</span> | |
<span ng-show="offer.owner.online == 0">Offline</span> | |
</p> | |
<p ng-if="$root.me.permissions.indexOf('admin') >= 0"> | |
<a href="" class="btn btn-link btn-info" ng-click="selectEntry(offer)"><span class="glyphicon glyphicon-edit"></span></a> | |
<a href="" class="btn btn-link btn-danger" ng-click="block(offer.owner.id, offer.owner.type)"><span class="glyphicon glyphicon-ban-circle"></span></a> | |
<a href="" class="btn btn-link btn-danger" ng-click="delete()"><span class="glyphicon glyphicon-remove"></span></a> | |
</p> | |
</div> | |
<div class="b-offer-item-container"> | |
<div class="b-offer-item-tittle" > | |
{{ offer.title }} | |
</div> | |
<p contenteditable="{{ isEditableOn }}" ng-model="offer.city"></p> | |
<ng-switch on="isEditableOn"> | |
<p contenteditable="true" ng-switch-when="true" ng-model="offer.text"></p> | |
<p ng-switch-default read-more text="offer.text" text-count="500"></p> | |
</ng-switch> | |
<div class="b-offer-item-images"> | |
<a ng-href="{{ photo.photo_2560 || photo.photo_1280 || photo.photo_807 || photo.photo_604 || photo.photo_130 || photo.photo_75 }}" ng-repeat="photo in offer.photos" target="_blank"> | |
<img ng-src="{{ photo.photo_130 || photo.photo_75 }}"> | |
</a> | |
</div> | |
<p class="b-offer-item-date">{{ offer.date | date:"dd.MM.yyyy в HH:mm" }}</p> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment