[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] Packages: Highlight the package row on the Packages page when requested in URL
"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a750673e5303_3819f4c466017@gitlab-sidekiq-low-urgency-cpu-bound-v2-76995fd67b-6qpdt.mail> |
ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
e251205b by NasserNgandu at 2026-08-06T21:57:19+00:00
[ENH] Packages: Highlight the package row on the Packages page when requested in URL
---
* [FIX] Code Correct.
* [FIX] Code Correct.
* [ENH][NEW] Link highlighted the package row on the Packages page
See merge request tikiwiki/tiki!10696
- - - - -
3 changed files:
- admin/include_packages.php
- templates/admin/include_packages.tpl
- templates/prefs/shared.tpl
Changes:
=====================================
admin/include_packages.php
=====================================
@@ -140,6 +140,7 @@ $packageprefs = TikiLib::lib('prefs')->getPackagePrefs();
asort($packageprefs);
$smarty->assign('packageprefs', $packageprefs);
+$smarty->assign('package_highlight', $_GET['package_highlight'] ?? null);
$smarty->assign('composer_environment_warning', $composerManager->checkThatCanInstallPackages());
$smarty->assign('composer_available', $composerManager->composerIsAvailable());
$smarty->assign('composer_packages_installed', $installableList);
=====================================
templates/admin/include_packages.tpl
=====================================
@@ -235,7 +235,7 @@
<th width="200">{tr}Action{/tr}</th>
</tr>
{foreach item=entry from=$composer_packages_available}
- <tr>
+ <tr class="{if $entry.name == $package_highlight}table-warning{/if}">
<td>
{$entry.name}
{if $entry.state == 'replaced'}
=====================================
templates/prefs/shared.tpl
=====================================
@@ -84,7 +84,7 @@
{icon name="ok" class="pref_dependency tips text-success" title="{tr}Requires package:{/tr} "|cat:$dep.label|escape|cat:" (OK)"}
{else}
<div class="alert alert-warning pref_dependency d-inline-block"{if not $p.modified and not $p.value} style="display:none;"{/if}>
- {tr}A Tiki package is missing:{/tr} <a href="tiki-admin.php?page=packages" class="alert-link">{$dep.label|escape}</a>
+ {tr}A Tiki package is missing:{/tr} <a href="tiki-admin.php?page=packages&package_highlight={$dep.label|escape:'url'}" class="alert-link">{$dep.label|escape}</a>
</div>
{/if}
{/foreach}
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e251205b6eed26a94fb2cc4ca261f4624a12d2c6
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/e251205b6eed26a94fb2cc4ca261f4624a12d2c6
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