[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [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 <6a9533043751b_38105e89863629@gitlab-sidekiq-low-urgency-cpu-bound-v2-7b7686c575-nmt52.mail>

ushindi bienvenu pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
59d8b356 by NasserNgandu at 2026-08-31T07:45:52+00:00
[ENH] Packages: Highlight the package row on the Packages page when requested in URL
---
* [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

See merge request tikiwiki/tiki!11094

- - - - -


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&amp;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/59d8b3562f1fcd4096367b5de65245deb1f319e5

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/59d8b3562f1fcd4096367b5de65245deb1f319e5
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.