[Rt-commit] rt branch, 4.0/transaction-link-classes, created. rt-4.0.1-117-gdc57120
Shawn Moore
sartak at bestpractical.com
Wed Jun 22 17:35:22 EDT 2011
The branch, 4.0/transaction-link-classes has been created
at dc57120b621efa4e3f99a0319944f99885d9d85a (commit)
- Log -----------------------------------------------------------------
commit dc57120b621efa4e3f99a0319944f99885d9d85a
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Jun 22 17:33:05 2011 -0400
Add classes to our transaction link tags
This enables CSS like:
#ticket-history .Comment .actions .respond-link { display: none; }
Instead of this horrible CSS which matches query parameters(!):
#ticket-history .Comment .actions a[href*=Respond] { display: none; }
diff --git a/share/html/Ticket/Elements/ShowTransaction b/share/html/Ticket/Elements/ShowTransaction
index 47c76e8..5c9b88d 100755
--- a/share/html/Ticket/Elements/ShowTransaction
+++ b/share/html/Ticket/Elements/ShowTransaction
@@ -181,7 +181,8 @@ else {
"[<a href=\"".$UpdatePath
. "?id=" . $Transaction->Ticket
. "&QuoteTransaction=" . $Transaction->Id
- . "&Action=Respond\">"
+ . "&Action=Respond\" "
+ . "class=\"reply-link\">"
. loc('Reply')
. "</a>] ";
}
@@ -191,15 +192,16 @@ else {
. $Transaction->Ticket
. "&QuoteTransaction="
. $Transaction->Id
- . "&Action=Comment\">"
+ . "&Action=Comment\" "
+ . "class=\"comment-link\">"
. loc('Comment') . "</a>]";
}
if ( $ticket->CurrentUserHasRight('ForwardMessage') ) {
$titlebar_commands .=
"[<a href=\"". $ForwardPath
. "?id=". $Transaction->Ticket
- . "&QuoteTransaction=". $Transaction->Id
- . "\">". loc('Forward') . "</a>]";
+ . "&QuoteTransaction=". $Transaction->Id ."\" "
+ . "class=\"forward-link\">". loc('Forward') . "</a>]";
}
if ( $can_modify
&& RT->Config->Get('GnuPG')->{'Enable'}
@@ -208,8 +210,8 @@ else {
) {
$titlebar_commands .=
"[<a href=\"". $EncryptionPath
- . "?id=". $Transaction->Id
- . "\">". loc('Encrypt/Decrypt') . "</a>]";
+ . "?id=". $Transaction->Id ."\" "
+ . "class=\"gpg-link\">". loc('Encrypt/Decrypt') . "</a>]";
}
}
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list