summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-19 19:12:12 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-19 19:12:12 +0100
commit2406a4c64c905e33ca150a78bfcb747eea3dadf0 (patch)
tree536a53c15733adbba3b588d805b9df4e8d54493f /templates
parent794120c0f6cc933e89782262cbb71efd668f8cb8 (diff)
order suggestions by votes, add min height
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.explore.php16
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)">