summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-12-03 10:40:41 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-12-03 10:40:41 +0100
commit8e74fa253deea78486df2324071c94654bdca503 (patch)
treed4d7a0680d540028f2170fa8f4ecc277fe6076d3 /templates
parent1c7837c7cc324e11966bcebb9f5ca61ae29519a9 (diff)
Make expand entries in compact view after jumping to next/previous feed optional with a setting
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.php3
-rw-r--r--templates/part.settings.php10
2 files changed, 12 insertions, 1 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index c18069cde..3226dc839 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -5,7 +5,8 @@
ng-class="{
compact: Content.isCompactView(),
'feed-view': Content.isFeed()
- }">
+ }"
+ news-compact-expand="{{ Content.isCompactExpand() }}">
<div class="pull-to-refresh" ng-class="{
'show-pull-to-refresh': showPullToRefresh
}">
diff --git a/templates/part.settings.php b/templates/part.settings.php
index ae7cdf772..6e35d944b 100644
--- a/templates/part.settings.php
+++ b/templates/part.settings.php
@@ -19,6 +19,16 @@
</label>
</p>
+ <p ng-click="Settings.toggleSetting('compactExpand')">
+ <label for="compactExpand">
+ <input type="checkbox"
+ ng-checked="Settings.getSetting('compactExpand')"
+ name="compactExpand">
+ <?php p($l->t('Automatically expand articles in compact ' .
+ 'after j/n/left was pressed')); ?>
+ </label>
+ </p>
+
<p ng-click="Settings.toggleSetting('showAll')">
<label for="showAll">
<input type="checkbox" ng-checked="Settings.getSetting('showAll')"