summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-07-07 19:21:57 -0400
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-07-07 19:34:47 -0400
commit21d8c03ac969d93b9a0d29ee5cb8cd2f5630bdb8 (patch)
tree3722c027e5d108a880e811d882c0afcf488aec1d /app/views
parent92f1d6d6581061fe81bdd44f5c82086ea03dd2fb (diff)
Add a configuration parameter
Add a parameter to choose wether or not the user want to display a confirmation dialog when clicking on "mark all as read" actions.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/reading.phtml10
-rwxr-xr-xapp/views/helpers/pagination.phtml2
2 files changed, 11 insertions, 1 deletions
diff --git a/app/views/configure/reading.phtml b/app/views/configure/reading.phtml
index 0388e0bee..4d439e83d 100644
--- a/app/views/configure/reading.phtml
+++ b/app/views/configure/reading.phtml
@@ -83,6 +83,16 @@
</div>
<div class="form-group">
+ <div class="group-controls">
+ <label class="checkbox" for="reading_confirm">
+ <input type="checkbox" name="reading_confirm" id="reading_confirm" value="1"<?php echo $this->conf->reading_confirm ? ' checked="checked"' : ''; ?> />
+ <?php echo Minz_Translate::t ('reading_confirm'); ?>
+ <noscript> — <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
+ </label>
+ </div>
+ </div>
+
+ <div class="form-group">
<label class="group-name"><?php echo Minz_Translate::t ('auto_read_when'); ?></label>
<div class="group-controls">
<label class="checkbox" for="check_open_article">
diff --git a/app/views/helpers/pagination.phtml b/app/views/helpers/pagination.phtml
index d43c664e5..f38913c06 100755
--- a/app/views/helpers/pagination.phtml
+++ b/app/views/helpers/pagination.phtml
@@ -12,7 +12,7 @@
<?php $params['next'] = $this->nextId; ?>
<a id="load_more" href="<?php echo Minz_Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo Minz_Translate::t ('load_more'); ?></a>
<?php } elseif ($markReadUrl) { ?>
- <a id="bigMarkAsRead" href="<?php echo $markReadUrl; ?>" class="confirm">
+ <a id="bigMarkAsRead" href="<?php echo $markReadUrl; ?>"<?php if ($this->conf->reading_confirm) { echo ' class="confirm"';} ?>>
<?php echo Minz_Translate::t ('nothing_to_load'); ?><br />
<span class="bigTick">✔</span><br />
<?php echo Minz_Translate::t ('mark_all_read'); ?>