aboutsummaryrefslogtreecommitdiff
path: root/app/views/index
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2024-11-15 09:14:23 +0100
committerGravatar GitHub <noreply@github.com> 2024-11-15 09:14:23 +0100
commit5b9248f45f0ce93f9ffe2252f5fb955032ecd529 (patch)
tree4f53f9a00979963658f5520de59ffa59edce4e6a /app/views/index
parent916987717ef1879c3d9f029a43599e54adcb626c (diff)
New: Label menu in article row (#6984)
* configs * add the icon in the entry header line * rename comment * Update main.js * CSS * comment typo fix * fix gloabl view my labels menu * improved: my labels dropdown with triangle now. yay!
Diffstat (limited to 'app/views/index')
-rw-r--r--app/views/index/global.phtml15
-rw-r--r--app/views/index/normal.phtml20
2 files changed, 26 insertions, 9 deletions
diff --git a/app/views/index/global.phtml b/app/views/index/global.phtml
index 717560fd2..decde4cce 100644
--- a/app/views/index/global.phtml
+++ b/app/views/index/global.phtml
@@ -21,6 +21,21 @@
<a class="dropdown-close" href="#close">❌</a>
</template>
+<template id="labels_article_template">
+ <div class="dropdown-menu">
+ <ul class="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>
+ </div>
+ <a class="dropdown-close" href="#close">❌</a>
+</template>
+
<main id="stream" class="global<?= $class ?>">
<h1 class="title_hidden"><?= _t('conf.reading.view.global') ?></h1>
<?php
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index e2c3c9c56..3923d774b 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -24,15 +24,17 @@ $today = @strtotime('today');
</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>
+ <div class="dropdown-menu">
+ <ul class="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>
+ </div>
<a class="dropdown-close" href="#close">❌</a>
</template>