[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Resolve unclickable Archives context menu icon for files without version history
"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a2b35b94ba2c_3719594c796c7@gitlab-sidekiq-low-urgency-cpu-bound-v2-677db6d654-jxgd5.mail> |
luci pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
dc4a8354 by Moïse Nturubika at 2026-06-11T22:11:52+00:00
[FIX] Resolve unclickable Archives context menu icon for files without version history
---
* [FIX] Restore unclickable Archives menu link for files with zero history
See merge request tikiwiki/tiki!10012
- - - - -
1 changed file:
- templates/fgal_context_menu.tpl
Changes:
=====================================
templates/fgal_context_menu.tpl
=====================================
@@ -149,13 +149,17 @@
</a>
{if $gal_info.archives gt -1}
- {if isset($file.nbArchives) and $file.nbArchives gt 0}
- {$nb_archives=$file.nbArchives}
+ {$has_archives = isset($file.nbArchives) and $file.nbArchives gt 0}
+ {if $has_archives}
<a href="tiki-file_archives.php?fileId={$file.fileId}{if !empty($filegals_manager)}&filegals_manager={$filegals_manager|escape}{/if}">
- {icon _menu_text=$menu_text _menu_icon=$menu_icon name='file-archive' alt="{tr}Archives{/tr} ($nb_archives)"}
+ {else}
+ <span class="text-muted" title="{tr}There are no archives yet.{/tr}">
+ {/if}
+ {icon _menu_text=$menu_text _menu_icon=$menu_icon name='file-archive' alt="{tr}Archives{/tr}{if $has_archives} ({$file.nbArchives}){/if}"}
+ {if $has_archives}
</a>
{else}
- {icon _menu_text=$menu_text _menu_icon=$menu_icon name='file-archive' alt="{tr}Archives{/tr}"}
+ </span>
{/if}
{$replace_action_title="{tr}Upload new version{/tr}"}
{else}
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/dc4a835467d8dd87d0d60a0d1c7f005bcc31c3e2
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/dc4a835467d8dd87d0d60a0d1c7f005bcc31c3e2
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs