[rt-users] Question concerning ShowStatusInColor

Nathan Oyler noyler at khimetrics.com
Thu Aug 4 16:56:56 EDT 2005


Stephen,

That works, thank you very much. I will update the wiki with this
information.

> Nathan Oyler wrote:
> > http://wiki.bestpractical.com/index.cgi?ShowStatusInColor
> ...
> > The problem I have with it is that (pending approval) and (pending
other
> > Collection) show up with the <em></em> tags around them.
> ...
> > So I was thinking I could remove the <em> tags entirely, but it
seems
> > useful to have the emphasis there.
> >
> > Does anyone know the reason why this happens? How I may correct this
> > issue?
> 
> Nathan,
> 
> This works for me:
> 
>     if ( $Ticket->HasUnresolvedDependencies ) {
>         if ( $Ticket->HasUnresolvedDependencies( Type => 'approval' )
>              or $Ticket->HasUnresolvedDependencies( Type => 'code' ) )
{
>             return \'<em>', loc('(pending approval)'), \'</em>';
>         } else {
>             return \'<em><font color=AA8000>', loc('(pending other
> Collection)'), \'</font></em>';
>         }
>     } else {
>             return statusInColor($Ticket);
>     }
> }
> 
> i.e. (line #'s may be off as my file has been edited elsewhere)
> 
> 37c36
> <            return \'<em>', loc('(pending approval)'), \'</em>';
> ---
>  >            return "<em>" . loc('(pending approval)') . "</em>";
> 39c38
> <            return \'<em><font color=AA8000>', loc('(pending other
> Collection)'), \'</font></em>';
> ---
>  >            return "<em>" . loc('(pending other Collection)') .
"</em>";
> 
> --stephen




More information about the rt-users mailing list