diff options
| author | 2024-10-05 16:23:21 +0200 | |
|---|---|---|
| committer | 2024-10-05 16:23:21 +0200 | |
| commit | ca7221e885eae3ff075ea2c05798ceb4cec24daf (patch) | |
| tree | 9e67c37acaa60460149179c94fe27fb1628bd181 /app/views | |
| parent | 2d0897ea747208356d8c70cc25e327d7f08c523c (diff) | |
refactor labels article menu (#6864)
* refactor labels menu with template
* reduce network traffic
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/helpers/index/normal/entry_bottom.phtml | 10 | ||||
| -rw-r--r-- | app/views/index/normal.phtml | 13 |
2 files changed, 13 insertions, 10 deletions
diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtml index 51c103a74..6ebd17949 100644 --- a/app/views/helpers/index/normal/entry_bottom.phtml +++ b/app/views/helpers/index/normal/entry_bottom.phtml @@ -41,16 +41,6 @@ <a class="dropdown-toggle" href="#dropdown-labels-<?= $this->entry->id() ?>"> <?= _i('label') ?><?= _t('index.menu.tags') ?> </a> - <ul class="dropdown-menu dropdown-menu-scrollable scrollbar-thin"> - <li class="dropdown-header"> - <?= _t('index.menu.tags') ?> - <?php if (FreshRSS_Auth::hasAccess()) { ?> - <a href="<?= _url('tag', 'index') ?>"><?= _i('configure') ?></a> - <?php } ?> - </li> - <!-- Ajax --> - </ul> - <a class="dropdown-close" href="#close">❌</a> </div> </li><?php } diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index 63d96e01f..816089eb2 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -23,6 +23,19 @@ $today = @strtotime('today'); <a class="dropdown-close" href="#close">❌</a> </template> +<template id="labels_article_template"> + <ul class="dropdown-menu dropdown-menu-scrollable scrollbar-thin"> + <li class="dropdown-header"> + <?= _t('index.menu.tags') ?> + <?php if (FreshRSS_Auth::hasAccess()) { ?> + <a href="<?= _url('tag', 'index') ?>"><?= _i('configure') ?></a> + <?php } ?> + </li> + <!-- Ajax --> + </ul> + <a class="dropdown-close" href="#close">❌</a> +</template> + <main id="stream" class="normal<?= FreshRSS_Context::userConf()->display_posts ? '' : ' hide_posts' ?>"> <h1 class="title_hidden"><?= _t('conf.reading.view.normal') ?></h1> <div id="new-article"> |
