summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-21 12:49:26 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-21 12:57:03 +0100
commit6d3e829821707095269590f8a880f88d1cf8c980 (patch)
tree4f49c314b4602faed9909daf6e904da64cdd2479 /templates
parent1ef00530bd5eab6688b297197b775d3d6289fa6f (diff)
hide categories without elements
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.explore.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/part.content.explore.php b/templates/part.content.explore.php
index 3ae47c916..546d8f118 100644
--- a/templates/part.content.explore.php
+++ b/templates/part.content.explore.php
@@ -1,7 +1,9 @@
<?php print_unescaped($this->inc('part.content.cronwarning')) ?>
<div id="explore">
- <div ng-repeat="(category, data) in Explore.sites | orderBy:'category.toLowerCase()'" class="explore-section">
+ <div ng-repeat="(category, data) in Explore.sites | orderBy:'category.toLowerCase()'"
+ ng-if="Explore.isCategoryShown(data)"
+ class="explore-section">
<h2>{{ category }}</h2>
<ul>
@@ -21,7 +23,7 @@
</div>
</div>
<div class="explore-subscribe">
- <button ng-click="Explore.subscribeTo(entry.url)">
+ <button ng-click="Explore.subscribeTo(entry.feed || entry.url)">
<?php p($l->t('Subscribe')) ?>
</button>
</div>