summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-01-23 17:08:45 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2016-01-23 17:08:45 +0100
commite3ae4ea0bebc05e7ef16326501a9654ca9095310 (patch)
treedb2d945082ea76a00b472f9ab5b7077e38c22804 /templates
parent120a94582f62da9cf3ed32ad611ccdd226e5a751 (diff)
add german feeds and allow to change the language
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.explore.php53
-rw-r--r--templates/part.navigation.explore.php4
2 files changed, 36 insertions, 21 deletions
diff --git a/templates/part.content.explore.php b/templates/part.content.explore.php
index 740957d59..c7e971e4f 100644
--- a/templates/part.content.explore.php
+++ b/templates/part.content.explore.php
@@ -6,32 +6,47 @@
<input ng-model="Explore.filter" type="search" placeholder="<?php p(addslashes($l->t('filter'))) ?>" news-auto-focus>
</label>
</div>-->
+
<div class="explore-header">
<a href="https://github.com/owncloud/news/wiki/Explore-Feed-Section"><?php p($l->t('Got more awesome feeds? Share them with us!')) ?></a>
</div>
+
+ <div class="explore-filter">
+ <label for="explorelanguagecode"><?php p($l->t('Language')) ?>: </label>
+ <select id="explorelanguagecode" name="explorelanguagecode"
+ ng-change="Explore.showLanguage(Explore.selectedLanguageCode)"
+ ng-options="language as language for language in Explore.getSupportedLanguageCodes()"
+ ng-model="Explore.selectedLanguageCode"></select>
+ </div>
<div class="grid">
<div ng-repeat="entry in Explore.feeds | filter:Explore.filter | orderBy:'-votes'" ng-show="!Explore.feedExists(entry.feed)" class="explore-feed grid-item" news-refresh-masonry>
- <span class="category">{{ entry.category }}</span>
- <h1 ng-show="entry.favicon"
- ng-style="{ backgroundImage: 'url(' + entry.favicon + ')'}">
- <a target="_blank" ng-href="{{ entry.url }}">{{ entry.title }}</a>
- </h1>
- <h1 ng-hide="entry.favicon" class="icon-rss">
- {{ entry.title }}
- </h1>
- <div style="clear:both"></div>
- <div class="explore-content">
- <p>{{ entry.description }}</p>
-
- <div class="explore-logo">
- <img ng-src="{{ entry.image }}" ng-if="entry.image">
+ <div class="category-wrapper">
+ <div class="category">
+ {{ entry.category }}
</div>
</div>
- <div class="explore-subscribe">
- <button ng-click="Explore.subscribeTo(entry.feed)">
- <?php p($l->t('Subscribe')) ?>
- </button>
+ <div class="grid-item-content">
+ <h1 ng-show="entry.favicon"
+ ng-style="{ backgroundImage: 'url(' + entry.favicon + ')'}">
+ <a target="_blank" ng-href="{{ entry.url }}">{{ entry.title }}</a>
+ </h1>
+ <h1 ng-hide="entry.favicon" class="icon-rss">
+ {{ entry.title }}
+ </h1>
+ <div style="clear:both"></div>
+ <div class="explore-content">
+ <p>{{ entry.description }}</p>
+
+ <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.feed)">
+ <?php p($l->t('Subscribe')) ?>
+ </button>
+ </div>
</div>
</div>
</div>
-</div> \ No newline at end of file
+</div>
diff --git a/templates/part.navigation.explore.php b/templates/part.navigation.explore.php
index acae91b2d..8575afb1c 100644
--- a/templates/part.navigation.explore.php
+++ b/templates/part.navigation.explore.php
@@ -1,5 +1,5 @@
<li ng-class="{active: Navigation.isExploreActive()}" class="explore-feed">
- <a class="icon-link" ng-href="#/explore/">
+ <a class="icon-link" ng-href="#/explore/?lang={{Navigation.getLanguageCode()}}">
<?php p($l->t('Explore')) ?>
</a>
-</li> \ No newline at end of file
+</li>