[Rt-commit] rt branch 5.0/custom-role-display-hints created. rt-5.0.2-10-ga9f89d7c2e

BPS Git Server git at git.bestpractical.com
Wed Sep 22 18:25:27 UTC 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/custom-role-display-hints has been created
        at  a9f89d7c2e2b0c5c332f92b457846486ceed4dff (commit)

- Log -----------------------------------------------------------------
commit a9f89d7c2e2b0c5c332f92b457846486ceed4dff
Author: Steven Burr <steve at bestpractical.com>
Date:   Wed Sep 22 14:23:00 2021 -0400

    Display entry hint in people section of ticket display page
    
    Display any entry hints defined for custom roles as tooltips in the people
    section of the ticket display page.

diff --git a/share/html/Ticket/Elements/ShowPeople b/share/html/Ticket/Elements/ShowPeople
index c59da90731..c924926513 100644
--- a/share/html/Ticket/Elements/ShowPeople
+++ b/share/html/Ticket/Elements/ShowPeople
@@ -72,7 +72,11 @@
 
 %     my $user = $users->First || RT->Nobody;
   <div class="form-row">
-    <div class="label col-3"><% $role->Name %>:</div>
+    <div class="label col-3"><% $role->Name %>:
+% if ( $role->EntryHint ) {
+      <span class="far fa-question-circle icon-helper" data-toggle="tooltip" data-placement="top" data-original-title="<% $role->EntryHint %>" />
+% }
+    </div>
     <div class="value col-9"><span class="current-value"><& /Elements/ShowUser, User => $user, Ticket => $Ticket &></span></div>
   </div>
 % }
@@ -98,7 +102,11 @@
 % $m->callback( CustomRoles => $multi_roles, SingleRoles => 0, Ticket => $Ticket, %ARGS, CallbackName => 'ModifyCustomRoles' );
 % while (my $role = $multi_roles->Next) {
   <div class="form-row">
-    <div class="label col-3"><% $role->Name %>:</div>
+    <div class="label col-3"><% $role->Name %>:
+% if ( $role->EntryHint ) {
+      <span class="far fa-question-circle icon-helper" data-toggle="tooltip" data-placement="top" data-original-title="<% $role->EntryHint %>" />
+% }
+    </div>
     <div class="value col-9"><span class="current-value"><& ShowGroupMembers, Group => $Ticket->RoleGroup($role->GroupType), Ticket => $Ticket &></span></div>
   </div>
 % }

-----------------------------------------------------------------------


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list