diff options
Diffstat (limited to 'templates/part.content.explore.php')
-rw-r--r-- | templates/part.content.explore.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/part.content.explore.php b/templates/part.content.explore.php index f225d7055..546d8f118 100644 --- a/templates/part.content.explore.php +++ b/templates/part.content.explore.php @@ -1,11 +1,13 @@ <?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> - <li ng-repeat="entry in data | orderBy:'-votes'"> + <li ng-repeat="entry in data | orderBy:'-votes'" ng-if="!Explore.feedExists(entry.url)"> <h3 ng-show="entry.favicon" ng-style="{ backgroundImage: 'url(' + entry.favicon + ')'}"> {{ entry.title }} @@ -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> |