diff options
| author | 2025-02-03 08:47:25 +0100 | |
|---|---|---|
| committer | 2025-02-03 08:47:25 +0100 | |
| commit | a697ca54ad7f723e52fc6591761e1f2f8b7877d6 (patch) | |
| tree | 7a0d7a852b90d5df41e16e33233cbb9c203cf2a1 /app/views/helpers | |
| parent | 7e90dfd0485a6684f5dfe7f2abdd92c6f7acb9d0 (diff) | |
Shortcuts for adding labels (#7274)
* add shortcut in config
* open my labels menu with shortcut
* the first 9 items are selectable + input field
* i18n
* Update app/i18n/nl/conf.php
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
* index.menu.mylabels
* order fixed
---------
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Diffstat (limited to 'app/views/helpers')
| -rw-r--r-- | app/views/helpers/configure/query.phtml | 2 | ||||
| -rw-r--r-- | app/views/helpers/index/normal/entry_bottom.phtml | 2 | ||||
| -rw-r--r-- | app/views/helpers/index/normal/entry_header.phtml | 2 | ||||
| -rw-r--r-- | app/views/helpers/javascript_vars.phtml | 1 |
4 files changed, 4 insertions, 3 deletions
diff --git a/app/views/helpers/configure/query.phtml b/app/views/helpers/configure/query.phtml index f0f339276..b078e1ed1 100644 --- a/app/views/helpers/configure/query.phtml +++ b/app/views/helpers/configure/query.phtml @@ -126,7 +126,7 @@ <option value="a" <?= in_array($this->query->getGet(), ['', 'a'], true) ? 'selected="selected"' : '' ?>><?= _t('index.feed.title') ?></option> <option value="i" <?= 'i' === $this->query->getGet() ? 'selected="selected"' : '' ?>><?= _t('index.menu.important') ?></option> <option value="s" <?= 's' === $this->query->getGet() ? 'selected="selected"' : '' ?>><?= _t('index.feed.title_fav') ?></option> - <option value="T" <?= 'T' === $this->query->getGet() ? 'selected="selected"' : '' ?>><?= _t('index.menu.tags') ?></option> + <option value="T" <?= 'T' === $this->query->getGet() ? 'selected="selected"' : '' ?>><?= _t('index.menu.mylabels') ?></option> <optgroup label="<?= _t('conf.query.filter.tags') ?>"> <?php foreach ($this->tags as $tag): ?> <option value="t_<?= $tag->id() ?>" <?= "t_{$tag->id()}" === $this->query->getGet() ? 'selected="selected"' : '' ?>><?= $tag->name() ?></option> diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtml index 0394405ad..f3c363275 100644 --- a/app/views/helpers/index/normal/entry_bottom.phtml +++ b/app/views/helpers/index/normal/entry_bottom.phtml @@ -39,7 +39,7 @@ <div class="item-element dropdown dynamictags"> <div id="dropdown-labels-<?= $this->entry->id() ?>" class="dropdown-target"></div> <a class="dropdown-toggle" href="#dropdown-labels-<?= $this->entry->id() ?>"> - <?= _i('label') ?><span class="dropdown-label"><?= _t('index.menu.tags') ?></span> + <?= _i('label') ?><span class="dropdown-label"><?= _t('index.menu.mylabels') ?></span> </a> </div> </li><?php diff --git a/app/views/helpers/index/normal/entry_header.phtml b/app/views/helpers/index/normal/entry_header.phtml index 459e4d180..0f90d8949 100644 --- a/app/views/helpers/index/normal/entry_header.phtml +++ b/app/views/helpers/index/normal/entry_header.phtml @@ -72,7 +72,7 @@ <li class="item labels"> <div class="item-element dropdown dynamictags"> <div id="dropdown-labels2-<?= $this->entry->id() ?>" class="dropdown-target"></div> - <a class="dropdown-toggle" href="#dropdown-labels2-<?= $this->entry->id() ?>" title="<?= _t('index.menu.tags') ?>"> + <a class="dropdown-toggle" href="#dropdown-labels2-<?= $this->entry->id() ?>" title="<?= _t('index.menu.mylabels') ?>"> <?= _i('label') ?> </a> <?php /* labels_article_template */ ?> diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml index 14af408a6..cadaf9331 100644 --- a/app/views/helpers/javascript_vars.phtml +++ b/app/views/helpers/javascript_vars.phtml @@ -46,6 +46,7 @@ echo htmlspecialchars(json_encode([ 'last_entry' => @$s['last_entry'], 'collapse_entry' => @$s['collapse_entry'], 'load_more' => @$s['load_more'], + 'mylabels' => @$s['mylabels'], 'auto_share' => @$s['auto_share'], 'focus_search' => @$s['focus_search'], 'user_filter' => @$s['user_filter'], |
