[Rt-commit] rtir branch, 5.0/font-awesome-icon-links, created. 4.0.1rc1-142-g6a7e37ce

Craig Kaiser craig at bestpractical.com
Tue May 26 17:30:31 EDT 2020


The branch, 5.0/font-awesome-icon-links has been created
        at  6a7e37cee9523dcfcced290a2a1957bf1cdb762f (commit)

- Log -----------------------------------------------------------------
commit e20d52c0bd3f868d76394c483d70913f2207fe95
Author: craig kaiser <craig at bestpractical.com>
Date:   Tue May 26 17:11:42 2020 -0400

    Use font awesome icons for Incident display links

diff --git a/html/Callbacks/RTIR/Ticket/Elements/ShowLinkedQueues/MassageTitleBox b/html/Callbacks/RTIR/Ticket/Elements/ShowLinkedQueues/MassageTitleBox
index 45f74d84..2035d1f7 100644
--- a/html/Callbacks/RTIR/Ticket/Elements/ShowLinkedQueues/MassageTitleBox
+++ b/html/Callbacks/RTIR/Ticket/Elements/ShowLinkedQueues/MassageTitleBox
@@ -25,20 +25,24 @@ foreach my $queue ( @queues ) {
             if ( $QueueObj->Id and $QueueObj->CurrentUserHasRight('CreateTicket') ) {
                 push @titleright_raw, {
                     title => $lifecycle ne RT::IR->lifecycle_investigation? loc('Create') : loc('Launch'),
-                    class => 'create_child' . ($lifecycle ? '_'.$lifecycle : ''),
+                    class => 'fas fa-plus',
                     path => RT::IR->HREFTo("Create.html?Incident=$id&Lifecycle=".$lifecycle),
                 };
             }
             push @titleright_raw, {
                 title => loc('Link'),
                 path  => RT::IR->HREFTo("Link/FromIncident/?id=$id&Lifecycle=".$lifecycle),
+                class => 'fas fa-link',
             };
         }
 
         $$titleright_raw = join ' 'x3,
-            map q{<a href="} . $_->{'path'} . ( $_->{'class'} ? q{" class="} . $_->{'class'} : '' ) . q{">}
-                . $m->interp->apply_escapes( $_->{title}, 'h' ) . q{</a>},
-            @titleright_raw;
+            map q{<a href="}.$_->{'path'}
+                    .q{"><span }.( $_->{'class'} ? q{" class="} . $_->{'class'} : '' )
+                    .q{" data-toggle="tooltip" data-placement="top" data-original-title="}
+                    .$m->interp->apply_escapes( $_->{title}, 'h' )
+                    .q{"></span>
+                </a>}, @titleright_raw;
     }
 }
 </%INIT>

commit 6a7e37cee9523dcfcced290a2a1957bf1cdb762f
Author: craig kaiser <craig at bestpractical.com>
Date:   Tue May 26 17:30:13 2020 -0400

    Migrate basics links to font awesome icons

diff --git a/html/RTIR/Elements/ShowIncidents b/html/RTIR/Elements/ShowIncidents
index 2979f6b7..6380fb1b 100644
--- a/html/RTIR/Elements/ShowIncidents
+++ b/html/RTIR/Elements/ShowIncidents
@@ -58,10 +58,15 @@
 &>
 <div class="actions">
 % unless ( $action ) {
-<a class="button btn-sm btn btn-primary" id="link-incident" href="<% RT::IR->HREFTo('Link/ToIncident/?id='. $id ) %>">Link</a>
-<a class="button btn-sm btn btn-primary" id="create-incident" href="<% RT::IR->HREFTo('Incident/Create.html?Lifecycle=' . RT::IR->lifecycle_incident . '&Child='. $id ) %>">New</a>
+<a class="button btn-sm btn btn-primary" id="link-incident" href="<% RT::IR->HREFTo('Link/ToIncident/?id='. $id ) %>">
+    <span class="fas fa-link" data-toggle="tooltip" data-placement="top" data-original-title="<% loc( 'Link' ) %>"></span>
+</a>
+<a class="button btn-sm btn btn-primary" id="create-incident" href="<% RT::IR->HREFTo('Incident/Create.html?Lifecycle=' . RT::IR->lifecycle_incident . '&Child='. $id ) %>">
+<span class="fas fa-plus" data-toggle="tooltip" data-placement="top" data-original-title="<% loc( 'New' ) %>"></span></a>
 % } elsif ( $action ne 'No' ) {
-<a class="button btn-sm btn btn-primary" href="<% RT::IR->HREFTo('Display.html?Action='. $action.'&id='. $id) %>"><% loc( $action ) %></a>
+<a class="button btn-sm btn btn-primary" href="<% RT::IR->HREFTo('Display.html?Action='. $action.'&id='. $id) %>">
+    <span class="fas fa-plus" data-toggle="tooltip" data-placement="top" data-original-title="<% loc( $action ) %>"></span>
+</a>
 % }
 </div>
 </span>

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


More information about the rt-commit mailing list