summaryrefslogtreecommitdiffstats
path: root/templates/part.content.explore.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/part.content.explore.php')
-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)">