aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2024-05-30 23:36:42 +0200
committerGravatar GitHub <noreply@github.com> 2024-05-30 23:36:42 +0200
commit5b197b8130efed7953f42cde0cbd2217b7fb0dbe (patch)
tree3d0312d501bf1bb4184d650f3ae81fa47582d5d5 /app
parentbe0e271fd5680945f6123131ecd803f051eb3a6e (diff)
Improved: Button to export OMPL of a category (#6519)
* Update update.phtml * fixed * Update app/views/helpers/category/update.phtml Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Update update.phtml * do it for feed too * Update update.phtml * Minor whitespace --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app')
-rw-r--r--app/views/helpers/category/update.phtml15
-rw-r--r--app/views/helpers/feed/update.phtml4
2 files changed, 17 insertions, 2 deletions
diff --git a/app/views/helpers/category/update.phtml b/app/views/helpers/category/update.phtml
index 7c0105b5f..a922d4dca 100644
--- a/app/views/helpers/category/update.phtml
+++ b/app/views/helpers/category/update.phtml
@@ -222,7 +222,9 @@
<button type="reset" class="btn"><?= _t('gen.action.cancel') ?></button>
</div>
</div>
+ </fieldset>
+ <fieldset>
<?php if (!$this->category->isDefault()): ?>
<p class="alert alert-warn">
<?= _t('sub.feed.moved_category_deleted', _t('gen.short.default_category')) ?>
@@ -243,5 +245,18 @@
</div>
</div>
</fieldset>
+
+ <fieldset>
+ <legend><?= _t('sub.import_export.export') ?></legend>
+ <div class="form-group">
+ <label class="group-name"><?= _t('sub.feed.export-as-opml.label') ?></label>
+ <div class="group-controls">
+ <a class="btn btn-important" href="<?= _url('index', 'opml', 'get', 'c_' . $this->category->id()) ?>" download="c_<?= $this->category->id() ?> <?= $this->category->name() ?>.opml.xml">
+ <?= _t('sub.feed.export-as-opml.download') ?>
+ </a>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.export-as-opml.help') ?></p>
+ </div>
+ </div>
+ </fieldset>
</form>
</div>
diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml
index 125e28253..43ed78b44 100644
--- a/app/views/helpers/feed/update.phtml
+++ b/app/views/helpers/feed/update.phtml
@@ -765,7 +765,7 @@
</fieldset>
</form>
-
+
<h2><?= _t('sub.feed.maintenance.title') ?></h2>
<div class="form-group">
<div class="group-controls">
@@ -791,7 +791,7 @@
<div class="form-group">
<label class="group-name"><?= _t('sub.feed.export-as-opml.label') ?></label>
<div class="group-controls">
- <a class="btn btn-important" href="<?= _url('index', 'opml', 'get', 'f_'.$this->feed->id()) ?>" download="<?= 'f_'.$this->feed->id()?> <?= $this->feed->name(true) ?>.opml.xml">
+ <a class="btn btn-important" href="<?= _url('index', 'opml', 'get', 'f_' . $this->feed->id()) ?>" download="f_<?= $this->feed->id() ?> <?= $this->feed->name(true) ?>.opml.xml">
<?= _t('sub.feed.export-as-opml.download') ?>
</a>
<p class="help"><?= _i('help') ?> <?= _t('sub.feed.export-as-opml.help') ?></p>