[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [ENH] Trackers: Grouping of the properties, fields and items buttons and...

"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a0c707174aa6_38191a4029250@gitlab-sidekiq-low-urgency-cpu-bound-v2-5cd5c5659d-vgr5x.mail>

Jonny Bradley pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
d493a629 by Jonny Bradley at 2026-05-19T14:06:32+00:00
[ENH] Trackers: Grouping of the properties, fields and items buttons and highlighting the active one
---
* [FIX] Title Correct

* [FIX] Code Correct

* [FIX] Code Correct

* [ENH] Tracker: Grouping of the properties, fields and items buttons and disabling the fields button if you are not on the fields page

See merge request tikiwiki/tiki!10134


(cherry picked from commit 38e6198835b15710761a39f2e29b2d6bdb4597c8)

1c1c8cbd [ENH] Tracker: Grouping of the properties, fields and items buttons and...
a56f62de [FIX] Code Correct
573d80fd [FIX] Code Correct
c25bf2a8 [FIX] Title Correct

Co-authored-by: NasserNgandu <[email protected]>
- - - - -


2 changed files:

- templates/tiki-view_tracker.tpl
- templates/tracker_actions.tpl


Changes:

=====================================
templates/tiki-view_tracker.tpl
=====================================
@@ -20,7 +20,7 @@
         {/if}
         
     {/if}
-    {include file="tracker_actions.tpl" showitems="n"}
+    {include file="tracker_actions.tpl"}
     <div class="btn-group float-sm-end">
         {if ! $js}<ul><li>{/if}
                 {if $prefs.feature_group_watches eq 'y' or $prefs.feature_user_watches eq 'y' or $prefs.feed_tracker eq 'y' or $tiki_p_admin_trackers eq 'y' or $tiki_p_export_tracker eq 'y' or $prefs.sefurl_short_url eq 'y'}


=====================================
templates/tracker_actions.tpl
=====================================
@@ -1,25 +1,22 @@
 {* navbar buttons at the top of the tracker pages *}
 <div class="btn-group">
-
+{if $tiki_p_list_trackers eq 'y'}
+    <a class="btn btn-info tips" title=":{tr}List all trackers (you have the permission to see){/tr}" href="{if $prefs.feature_sefurl eq 'y'}trackers{else}tiki-list_trackers.php{/if}">
+        {icon name="trackers"} {tr}Trackers{/tr}
+    </a>
+{/if}
+</div>
+<div class="btn-group">
 {if $tiki_p_admin_trackers eq 'y' and !empty($trackerId)}
     <a class="btn btn-info tracker-properties tips" title=":{tr _0="{$tracker_info.name|escape}"}Edit the configuration properties of tracker “%0”{/tr}" href="{bootstrap_modal controller=tracker action=replace trackerId=$trackerId}">
         {icon name="settings"} {tr}Properties{/tr}
     </a>
-    <a class="btn btn-info tips" title=":{tr _0="{$tracker_info.name|escape}"}Configure the data fields for tracker “%0”{/tr}" href="{$trackerId|sefurl:'trackerfields'}">
+    <a class="btn btn-info tips{if $smarty.server.SCRIPT_NAME|strpos:'tiki-admin_tracker_fields.php' !== false} active{/if}" title=":{tr _0="{$tracker_info.name|escape}"}Configure the data fields for tracker “%0”{/tr}" href="{$trackerId|sefurl:'trackerfields'}">
         {icon name="th-list"} {tr}Fields{/tr}
     </a>
 {/if}
-
-</div>
-<div class="btn-group">
-{if $tiki_p_list_trackers eq 'y'}
-    <a class="btn btn-info tips" title=":{tr}List all trackers (you have the permission to see){/tr}" href="{if $prefs.feature_sefurl eq 'y'}trackers{else}tiki-list_trackers.php{/if}">
-        {icon name="trackers"} {tr}Trackers{/tr}
-    </a>
-{/if}
-
-{if !empty($trackerId) and $tiki_p_view_trackers eq 'y' && (empty($showitems) || $showitems !== 'n')}
-    <a class="btn btn-info tips" title=":{tr _0="{$tracker_info.name|escape}"}Go back to the list of items for “%0”{/tr}" href="{$trackerId|sefurl:"tracker"}">
+{if !empty($trackerId) and $tiki_p_view_trackers eq 'y'}
+    <a class="btn btn-info tips{if $smarty.server.SCRIPT_NAME|strpos:'tiki-view_tracker.php' !== false} active{/if}" title=":{tr _0="{$tracker_info.name|escape}"}List of items for “%0”{/tr}" href="{$trackerId|sefurl:"tracker"}">
         {icon name="list"} {tr}Items{/tr}
     </a>
 {/if}



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/d493a629e54643f0dd9fafa51ebbaa218ac9317a

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/d493a629e54643f0dd9fafa51ebbaa218ac9317a
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.