Skip to content

Commit

Permalink
Finish handling news image orientation on the front.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pelletier committed Feb 29, 2016
1 parent bc10e11 commit 8b26e47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/games/dashboard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
<div class="triangle"></div>
</div>

<div id="news-image" ng-class="news[newsIndex].media_landscape == true ? 'landscape' : 'portrait'">
<div id="news-image" ng-class="news[newsIndex].media_landscape == true ? 'landscape' : 'portrait'" ng-if="news[newsIndex].media_url">
<div class="image"
ng-show="news[newsIndex].media_url"
style="background-image: url({{news[newsIndex].media_url}})">
</div>
</div>

<div id="news-container">
<div class="slider" ng-if="news.length>0" ng-class="news[newsIndex].media_landscape == true ? 'landscape' : 'portrait'">
<div class="slider" ng-if="news.length>0" ng-class="news[newsIndex].media_landscape == false && news[newsIndex].media_url ? 'portrait' : 'landscape'">
<div ng-repeat="news_item in news"
class="slide slide-animation nonDraggableImage"
ng-hide="!isCurrentSlideIndex($index)">
Expand Down

0 comments on commit 8b26e47

Please sign in to comment.