diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-19 19:12:12 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-19 19:12:12 +0100 |
commit | 2406a4c64c905e33ca150a78bfcb747eea3dadf0 (patch) | |
tree | 536a53c15733adbba3b588d805b9df4e8d54493f /templates | |
parent | 794120c0f6cc933e89782262cbb71efd668f8cb8 (diff) |
order suggestions by votes, add min height
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.content.explore.php | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/templates/part.content.explore.php b/templates/part.content.explore.php index 8b7c6fe32..f225d7055 100644 --- a/templates/part.content.explore.php +++ b/templates/part.content.explore.php @@ -1,18 +1,24 @@ <?php print_unescaped($this->inc('part.content.cronwarning')) ?> <div id="explore"> - <div ng-repeat="(category, data) in Explore.sites" class="explore-section"> + <div ng-repeat="(category, data) in Explore.sites | orderBy:'category.toLowerCase()'" class="explore-section"> <h2>{{ category }}</h2> <ul> - <li ng-repeat="entry in data | orderBy:votes:true"> - <h3 ng-style="{ backgroundImage: 'url(' + entry.favicon + ')'}"> + <li ng-repeat="entry in data | orderBy:'-votes'"> + <h3 ng-show="entry.favicon" + ng-style="{ backgroundImage: 'url(' + entry.favicon + ')'}"> {{ entry.title }} </h3> - <div> + <h3 ng-hide="entry.favicon" class="icon-rss"> + {{ entry.title }} + </h3> + <div class="explore-content"> {{ entry.description }} - <img ng-src="{{ entry.image }}" ng-if="entry.image"> + <div class="explore-logo"> + <img ng-src="{{ entry.image }}" ng-if="entry.image"> + </div> </div> <div class="explore-subscribe"> <button ng-click="Explore.subscribeTo(entry.url)"> |