Skip to content

Commit debf4aa

Browse files
committed
Hide message reply button on twitter messages
We can't reply on twitter, so don't show a broken UI. Also hide pagination when less that 1 page of results Refs ushahidi/platform #1480
1 parent 145c7d2 commit debf4aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/main/posts/detail/post-messages.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ <h2 class="listing-item-title">
2222
</div>
2323
</div>
2424

25-
<div class="listing-item">
25+
<div class="listing-item" ng-show="totalItems > itemsPerPage">
2626
<div class="listing-item-primary">
2727

2828
<uib-pagination ng-model="currentPage" items-per-page="itemsPerPage" total-items="totalItems" ng-change="pageChanged()" max-size="5" rotate="false"></pagination>
2929

3030
</div>
3131
</div>
3232

33-
<div class="listing-item">
33+
<div class="listing-item" ng-show="contact.type !== 'twitter'">
3434
<div class="listing-item-primary">
3535
<h2 class="listing-item-title">
3636
<a href="" class="button button-flat" ng-click="reply()">

0 commit comments

Comments
 (0)