Make current queue more obvious (ideally as part of <% $title %>)

We have a need to make the current working queue more obvious
in the web UI.

I’ve had a look, and my first choice desire would be to get
html/Elements/PageLayout to include the queue name in $title:

...
<div id="header">
<h1><% $title %></h1>
...

Looking at html/Elements/PageLayout’s <%ARGS>, I see that

$title => $m->callers(-1)->path

How “$m->callers(-1)->path” gets converted into, say,
"#5103: my test ticket", is beyond me :frowning:

Has anyone already done something like this, and would you
be willing to share your solution?

Barring that, any leads on the right path to head down would
be welcome. I really don’t fully comprehend all of the specifics
of all of the pieces of RT internals, such as what is available
in what scope, how $m works (which I assume is something to do
with Mason), etc…

We have a need to make the current working queue more obvious
in the web UI.

I’ve had a look, and my first choice desire would be to get
html/Elements/PageLayout to include the queue name in $title:

<% $title %>

...

Looking at html/Elements/PageLayout’s <%ARGS>, I see that

$title => $m->callers(-1)->path

How “$m->callers(-1)->path” gets converted into, say,
#5103: my test ticket”, is beyond me :frowning:

Has anyone already done something like this, and would you
be willing to share your solution?

Barring that, any leads on the right path to head down would
be welcome. I really don’t fully comprehend all of the specifics
of all of the pieces of RT internals, such as what is available
in what scope, how $m works (which I assume is something to do
with Mason), etc…

You’ll have better luck starting in the code of Ticket/Display.html, it
defines the title right before it calls the BeforeDisplay callback and
you can absolutely munge the title from the BeforeDisplay callback in
Ticket/Display.html.

-kevin