diff options
| author | 2024-04-01 11:43:22 +0200 | |
|---|---|---|
| committer | 2024-04-01 11:43:22 +0200 | |
| commit | c18987fae3a4f54c9e85e422c9d620c0e0d0eeb3 (patch) | |
| tree | 7e5c69fa0668af7af15d197c05344c8ecfdd7379 /app | |
| parent | 1ae21260bb0f8f6a0578e3f706d0343607b6b483 (diff) | |
Improve/fix label management (#6212)
* add the slider
* the styles
* add the title
* improve the column layout
Diffstat (limited to 'app')
| -rw-r--r-- | app/Controllers/tagController.php | 2 | ||||
| -rw-r--r-- | app/views/tag/index.phtml | 24 |
2 files changed, 24 insertions, 2 deletions
diff --git a/app/Controllers/tagController.php b/app/Controllers/tagController.php index 091da6a6f..d998045a4 100644 --- a/app/Controllers/tagController.php +++ b/app/Controllers/tagController.php @@ -195,6 +195,8 @@ class FreshRSS_tag_Controller extends FreshRSS_ActionController { } public function indexAction(): void { + FreshRSS_View::prependTitle(_t('sub.menu.label_management') . ' · '); + if (!FreshRSS_Auth::hasAccess()) { Minz_Error::error(403); } diff --git a/app/views/tag/index.phtml b/app/views/tag/index.phtml index 3f6cf8945..9b86b7496 100644 --- a/app/views/tag/index.phtml +++ b/app/views/tag/index.phtml @@ -29,10 +29,30 @@ <?php if (count($this->tags) > 0): ?> <h2><?= _t('gen.action.manage') ?></h2> - <ul> + <ul id="tagsList" <?= (count($this->tags) > 11) ? 'class="listInColumns"' : '' ?>> <?php foreach ($this->tags as $tag): ?> - <li><a href="<?= _url('tag', 'update', 'id', $tag->id()) ?>"><?= $tag->name() ?></a></li> + <li> + <a href="<?= _url('tag', 'update', 'id', $tag->id()) ?>" class="configure open-slider" title="<?= _t('gen.action.manage') ?>"> + <?= _i('configure') ?> + </a> + <?= $tag->name() ?> + </li> <?php endforeach; ?> </ul> <?php endif; ?> </main> + +<?php $class = isset($this->tag) ? ' active' : ''; ?> +<aside id="slider" class="<?= $class ?>"> + <a class="toggle_aside" href="#close"><img class="icon" src="../themes/icons/close.svg" loading="lazy" alt="❌"></a> + <div id="slider-content"> + <?php + if (isset($this->tag)) { + $this->renderHelper('tag/update'); + } + ?> + </div> +</aside> +<a href="#" id="close-slider"> + <?= _i('close') ?> +</a> |
