aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Matt DeMoss <demoss.matt@gmail.com> 2018-02-19 09:36:18 -0500
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-02-19 15:36:18 +0100
commit0936a6cdb2005e325d3be98e42897eb7a42541c7 (patch)
tree328bac3a24a60c75e82428ea06f46a1df4799b5a /app/views
parentc79b8fb46e25cd513799224b83cb93282c3a8e26 (diff)
Option to hide nav_entries (#1764)
* put nav_entries in a div so they can be hidden, add config option, no labels yet * add English text for hide_nav_entries, choose better name * Update conf.php add comma to last item * hide nav_entries by optionally not rendering in normal.phtml * fix logic, remove containing div * apply phpcbf to ConfigurationSetter.php * Make navigation buttons options positive And add TODOs for i18n, and add default config.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/display.phtml11
-rw-r--r--app/views/index/normal.phtml2
2 files changed, 11 insertions, 2 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index 62ecc1080..414fd2cd6 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -106,7 +106,7 @@
</tbody>
</table><br />
</div>
-
+
<div class="form-group">
<label class="group-name" for="html5_notif_timeout"><?php echo _t('conf.display.notif_html5.timeout'); ?></label>
<div class="group-controls">
@@ -114,6 +114,15 @@
</div>
</div>
+ <div class="form-group">
+ <div class="group-controls">
+ <label class="checkbox" for="show_nav_buttons">
+ <input type="checkbox" name="show_nav_buttons" id="show_nav_buttons" value="1"<?php echo FreshRSS_Context::$user_conf->show_nav_buttons ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->show_nav_buttons; ?>"/>
+ <?php echo _t('conf.display.show_nav_buttons'); ?>
+ </label>
+ </div>
+ </div>
+
<div class="form-group form-actions">
<div class="group-controls">
<button type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index ba48b2501..c7cab2d3f 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -83,7 +83,7 @@ if (!empty($this->entries)) {
$this->renderHelper('pagination');
?></div>
-<?php $this->partial('nav_entries'); ?>
+<?php if (FreshRSS_Context::$user_conf->show_nav_buttons) $this->partial('nav_entries'); ?>
<?php } else { ?>
<div id="stream" class="prompt alert alert-warn normal">