Hello,
First, I'am not an developer and I'am using OTRS not long. So I don't
know if this patch is usable.
I don't like the <blink>Oldest Queue</blink> and I don't want change
source code after each update.
So here two patches. I hope everyone understand what I tried. Perhaps
some developers can put it in the right naming convention. And improve
it. It is only a dirty hack with that I can live.
My first idea was to make an option which you can set to blink or bold
and then to make the right HTML tags, but I don't find the right place
for "make <b> for bold and <blink> for blink". So you must put the right
tag in the option itself. But this makes some unbeautiful possibilities
...
Regards,
Alex
--
Alexander Koch, mailto: [EMAIL PROTECTED]
ILK Internet GmbH, Akademiestrasse 25 - 27, D-76133 Karlsruhe
Tel: +49 (0) 721 9100 0, Fax: +49 (0) 721 9100 191
http://www.ilk.net
--- Ticket.pm.org 2005-07-14 16:14:35.000000000 +0200
+++ Ticket.pm 2005-07-14 16:22:19.000000000 +0200
@@ -173,6 +173,11 @@
$Self->{HighlightAge2} = 2880;
$Self->{HighlightColor2} = 'red';
+ # Wich HTML Tag for the oldest Queue?
+ # What to put in <> </>
+ $Self->{QueueBlinkTag} = 'em';
+
+
# Ticket::Frontend::PendingDiffTime
# (Time in sec. which "pending date" shows per default) [default: 24*60*60
-=> 1d]
$Self->{'Ticket::Frontend::PendingDiffTime'} = 24*60*60;
--- AgentTicketQueue.pm.orig 2005-07-14 16:12:58.000000000 +0200
+++ AgentTicketQueue.pm 2005-07-14 16:22:21.000000000 +0200
@@ -54,6 +54,8 @@
$Self->{CustomQueue} = $Self->{ConfigObject}->Get('Ticket::CustomQueue')
|| '???';
# default viewable tickets a page
$Self->{ViewableTickets} = $Self->{UserQueueViewShowTickets} ||
$Self->{ConfigObject}->Get('PreferencesGroups')->{QueueViewShownTickets}->{DataSelected}
|| 15;
+ # HTML Tag for oldest Queue
+ $Self->{QueueBlinkTag} = $Self->{ConfigObject}->Get('QueueBlinkTag') ||
'blink';
# --
# get params
@@ -632,13 +634,13 @@
}
# the oldest queue
if ($Queue{QueueID} == $QueueIDOfMaxAge) {
- $QueueStrg .= "<blink>";
+ $QueueStrg .= "<$Self->{'QueueBlinkTag'}>";
}
# QueueStrg
$QueueStrg .= $Self->{LayoutObject}->Ascii2Html(Text =>
$ShortQueueName)." ($Counter{$Queue{Queue}})";
# the oldest queue
if ($Queue{QueueID} == $QueueIDOfMaxAge) {
- $QueueStrg .= "</blink>";
+ $QueueStrg .= "</$Self->{'QueueBlinkTag'}>";
}
# should i highlight this queue
if ($Queue{MaxAge} >= $Self->{HighlightAge1}
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev