summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-10-21 15:14:19 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-10-21 15:14:19 +0200
commitfbad651ebd31d09406ef141e61ea396ad1eda710 (patch)
treeb57b142031c4e291856cc607fb3697b537b48b49 /templates
parentb02f22f86b6e89483948e5bf9605558a78046efd (diff)
Make config.ini editable in the admin interface
Diffstat (limited to 'templates')
-rw-r--r--templates/admin.php76
1 files changed, 76 insertions, 0 deletions
diff --git a/templates/admin.php b/templates/admin.php
new file mode 100644
index 000000000..eb5960149
--- /dev/null
+++ b/templates/admin.php
@@ -0,0 +1,76 @@
+<?php
+script('news', 'admin/Admin');
+style('news', 'admin');
+?>
+
+<div class="section" id="news">
+ <h2>News</h2>
+ <div class="form-line">
+ <input type="checkbox" name="news-use-cron-updates"
+ <?php if ($_['useCronUpdates']) p('checked'); ?>>
+ <label for="news-use-cron-updates">
+ <?php p($l->t('Use ownCloud cron to for updates')); ?></label>
+ <p>
+ <em><?php p($l->t(
+ 'Disable this if you run a custom updater such as the Python' .
+ 'updater included in the app.'
+ )); ?></em>
+ </p>
+ </div>
+ <div class="form-line">
+ <input type="text" name="news-auto-purge-minimum-interval"
+ value="<?php p($_['autoPurgeMinimumInterval']); ?>">
+ <label for="news-auto-purge-minimum-interval">
+ <?php p($l->t('Purge interval')); ?>
+ </label>
+ <p>
+ <em>
+ <?php p($l->t(
+ 'Minimum amount of seconds after deleted feeds and folders are ' .
+ 'removed from the database. Values below 60 seconds are ignored'
+ )); ?></em>
+ </p>
+ </div>
+ <div class="form-line">
+ <input type="text" name="news-auto-purge-count"
+ value="<?php p($_['autoPurgeCount']); ?>">
+ <label for="news-auto-purge-count">
+ <?php p($l->t('Maximum unread count per feed')); ?>
+ </label>
+ <p>
+ <em>
+ <?php p($l->t(
+ 'Defines the minimum amount of articles that can be unread per ' .
+ 'feed before they get deleted.'
+ )); ?></em>
+ </p>
+ </div>
+ <div class="form-line">
+ <input type="text" name="news-cache-duration"
+ value="<?php p($_['cacheDuration']); ?>">
+ <label for="news-cache-duration">
+ <?php p($l->t('Cache duration')); ?>
+ </label>
+ <p>
+ <em><?php p($l->t('Amount of seconds to cache feeds')); ?></em>
+ </p>
+ </div>
+ <div class="form-line">
+ <input type="text" name="news-feed-fetcher-timeout"
+ value="<?php p($_['feedFetcherTimeout']); ?>">
+ <label for="news-feed-fetcher-timeout">
+ <?php p($l->t('Feed fetcher timeout')); ?>
+ </label>
+ <p>
+ <em>
+ <?php p($l->t(
+ 'Maximum number of seconds to wait for an RSS or Atom feed to ' .
+ 'load. If a feed takes longer than that number of seconds to ' .
+ 'update, the update will be aborted.'
+ )); ?></em>
+ </p>
+ </div>
+ <div id="news-saved-message">
+ <span class="msg success"><?php p($l->t('Saved')); ?></span>
+ </div>
+</div> \ No newline at end of file