diff options
| author | 2024-09-07 23:24:05 +0200 | |
|---|---|---|
| committer | 2024-09-07 23:24:05 +0200 | |
| commit | f7235bcb54e9f24e4de1f83d7428fa3ff970bb05 (patch) | |
| tree | 10e23a26d0ec5a8758ac2c760251ad82887ef944 /app/layout | |
| parent | 93c102d7eab69fee76f50fe207f9d3f4022372ca (diff) | |
Improved: refactor the sharing menu to use a template instead of duplicated HTML code (#6751)
* <script> --> <template>
* sharing menu
* normal view, global view (reader view does not have a share button)
* fix
Diffstat (limited to 'app/layout')
| -rw-r--r-- | app/layout/aside_feed.phtml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml index 31e5399c7..cd0e0464c 100644 --- a/app/layout/aside_feed.phtml +++ b/app/layout/aside_feed.phtml @@ -154,16 +154,16 @@ <div id="first_load" class="loading"></div> <?php flush(); ?> -<script id="tag_config_template" type="text/html"> +<template id="tag_config_template"> <ul class="dropdown-menu"> <li class="item"> <a class="configure open-slider" href="<?= _url('tag', 'update', 'id', '------') ?>"><?= _t('gen.action.manage') ?></a> </li> </ul> <a class="dropdown-close" href="#close">❌</a> -</script> +</template> -<script id="feed_config_template" type="text/html"> +<template id="feed_config_template"> <ul class="dropdown-menu"> <li class="item"><a href="<?= _url('index', $actual_view, 'get', 'f_------') ?>"><?= _t('gen.action.filter') ?></a></li> <?php if (FreshRSS_Auth::hasAccess()) { ?> @@ -190,4 +190,4 @@ <?php } ?> </ul> <a class="dropdown-close" href="#close">❌</a> -</script> +</template> |
