Skip to content

Instantly share code, notes, and snippets.

@AndreyKopylov
Created November 25, 2014 18:35
Show Gist options
  • Save AndreyKopylov/0dcd90463e33886afa72 to your computer and use it in GitHub Desktop.
Save AndreyKopylov/0dcd90463e33886afa72 to your computer and use it in GitHub Desktop.
results__content
.wrap
h3.advanced-results__title Найдено: <span>{{results.total}}</span>
a.button.float-r(ng-show="results.diff.length" ng-click="results.showDiff()")
| Сравнить выбранные ({{results.diff.length}})
.results_block.wrap
.result(
ng-repeat="item in results.results"
ng-click="false && results.toggleSelect(item)"
ng-class="{ result_active:results.isSelected(item) }"
)
a.result__title(ui-sref='info-card({id: item.id})') {{item.fullName}}
p.result__location {{item.fullAddress}}
p.result__phone {{item.phone}}
div.result__details.clearfix(ng-show="results.isSelected(item)")
a.result__button.result__button_info(href=jv0) Подробная информация
a.result__button.result__button_mention(href=jv0) Оставить отзыв
a.result__button.result__button_rate(href=jv0) Оценить
a.result__button.result__button_map(href=jv0) Посмотреть на карте
a.result__button.result__button_compare(ng-click="results.toggleInDiff(item)" href="#") Сравнить
.pagination
.container
.float-l
a.pagination__prev(ng-click="results.search(results.page-1)" href="#" ng-show='results.isLegitPage(results.page - 1)') Предыдущая
a.pagination__item(
ng-repeat="page in results.getDeltaPages()"
ng-show="results.isLegitPage(page)"
ng-click="results.search(page)"
ng-class="{ pagination__item_active:results.isCurrentPage(page) }"
href="#") {{page}}
a.pagination__next(ng-click="results.search(results.page+1)" href="#" ng-if='results.isLegitPage(results.page + 1)') Следующая
p.pagination__page-number
| Показаны: <span>{{results.getRange()}}</span> из {{results.total | number:0}}
.clearfix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment