diff options
| author | 2025-09-25 22:47:09 +0200 | |
|---|---|---|
| committer | 2025-09-25 22:47:09 +0200 | |
| commit | cec21f231f22a085cd9e8f879081fc1571848e26 (patch) | |
| tree | 05c2ed481579a6e9bdc787210fb0b5db4160a059 /app/layout/aside_feed.phtml | |
| parent | f8b2b8c4153f8acdb4267a269ada27f8af22d7d9 (diff) | |
fix: anonym. mode: label management link (#8011)
Ref: #8001
Changes proposed in this pull request:
- do not show the "manage" dropdown menu for labels in anonym. mode (normal view)
Before:
<img width="304" height="139" alt="grafik" src="https://github.com/user-attachments/assets/2aff0299-febe-41b0-a99a-450559393cd6" />
After:
<img width="281" height="121" alt="grafik" src="https://github.com/user-attachments/assets/69ad334e-0a31-4546-9939-9b72306db046" />
Diffstat (limited to 'app/layout/aside_feed.phtml')
| -rw-r--r-- | app/layout/aside_feed.phtml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml index c9980f172..37ae379ed 100644 --- a/app/layout/aside_feed.phtml +++ b/app/layout/aside_feed.phtml @@ -66,11 +66,15 @@ foreach ($this->tags as $tag): ?> <li id="t_<?= $tag->id() ?>" class="item feed<?= FreshRSS_Context::isCurrentGet('t_' . $tag->id()) ? ' active' : '' ?>" data-unread="<?= $tag->nbUnread() ?>"> - <div class="dropdown no-mobile"> - <div id="dropdown-t-<?= $tag->id() ?>" class="dropdown-target"></div> - <a class="dropdown-toggle" href="#dropdown-t-<?= $tag->id() ?>"><?= _i('configure') ?></a> - <?php /* tag_config_template */ ?> - </div> + <?php if (FreshRSS_Auth::hasAccess()) { ?> + <div class="dropdown no-mobile"> + <div id="dropdown-t-<?= $tag->id() ?>" class="dropdown-target"></div> + <a class="dropdown-toggle" href="#dropdown-t-<?= $tag->id() ?>"><?= _i('configure') ?></a> + <?php /* tag_config_template */ ?> + </div> + <?php } else { ?> + <div class="no-dropdown-toggle"></div> + <?php } ?> <a class="item-title" data-unread="<?= format_number($tag->nbUnread()) ?>" href="<?= _url('index', $actual_view, 'get', 't_' . $tag->id()) . $state_filter_manual ?>"><?= _i('label') ?> <?= $tag->name() ?></a> </li> |
