Rt "boilerplate" responses

I have a Javascript based “template” system for inserting standard
text into comments/correspondence. (i.e. Updates.) (Similar to the
add on available for RT1.)

Actually, there’s very little javascript.

Is there any kind of generic hook that could be put into Updates.html
for this kind of things? I.e. “Other things to list somewhere on the
page?”

Right now, I’ve got it down to one component call, which pulls in a
component which does the all important javascript:window.open(), but
I’d love not to have to remember to patch Updates.html every time I
upgrade :slight_smile:

-R

I don’t know of one – other than contributing a patch! I’ve been trying
to find a good way to do the same thing without javascript (since RT
doesn’t use it anywhere else) and haven’t found a great way yet.

Marc Hedlund
e: marc at precipice dot orgOn Sat, 3 Nov 2001, Robert Spier wrote:

I have a Javascript based “template” system for inserting standard
text into comments/correspondence. (i.e. Updates.) (Similar to the
add on available for RT1.)

Actually, there’s very little javascript.

Is there any kind of generic hook that could be put into Updates.html
for this kind of things? I.e. “Other things to list somewhere on the
page?”

Right now, I’ve got it down to one component call, which pulls in a
component which does the all important javascript:window.open(), but
I’d love not to have to remember to patch Updates.html every time I
upgrade :slight_smile:

-R


rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

Marc Hedlund writes:

I don’t know of one – other than contributing a patch! I’ve been trying
to find a good way to do the same thing without javascript (since RT
doesn’t use it anywhere else) and haven’t found a great way yet.

Rumor has it that Jesse is working on something really cool for this
in 2.2.

I need to clean up my javascript solution, and then I’ll either send
it to RT-users, or ask jesse to put it in contrib/

-R

Robert Spier wrote:

I have a Javascript based “template” system for inserting standard
text into comments/correspondence. (i.e. Updates.) (Similar to the
add on available for RT1.)

Could you please post this somewhere, as my users are begging and I have
so little time (and no real understanding of javascript!).

It would be very much appreciated, as well as fit into the community
spirit that makes projects such as RT the sucess that they are :).

Thank you.

T�o de Hesselle, \ One possible reason that things
Unix Systems Administrator \ aren’t going according to plan
\ is that there never was a plan
University of Technology, Sydney \ in the first place.

Robert Spier wrote:

Right now, I’ve got it down to one component call, which pulls in a
component which does the all important javascript:window.open(), but
I’d love not to have to remember to patch Updates.html every time I
upgrade :slight_smile:

Put your custom version in ~rt/local/WebRT/ instead of ~rt/WebRT

Then mason will use that version instead - each time you upgrade, diff the
old and new versions of the ‘original’, ie the unhacked file, and you can
see if your version needs any updates - mine rarely do.

T�o de Hesselle, \ One possible reason that things
Unix Systems Administrator \ aren’t going according to plan
\ is that there never was a plan
University of Technology, Sydney \ in the first place.

component which does the all important javascript:window.open(), but
I’d love not to have to remember to patch Updates.html every time I
upgrade :slight_smile:
Put your custom version in ~rt/local/WebRT/ instead of ~rt/WebRT
Then mason will use that version instead - each time you upgrade, diff the
old and new versions of the ‘original’, ie the unhacked file, and you can
see if your version needs any updates - mine rarely do.

This is what I currently do, and it does become a small hassle when
you start having lots of files that must be upgraded. Especially lots
of little changes.

On my todo list (in my personal RT) is a ‘diff script’ that
automatically does the appropriate diffs and presents it in an easy
form.

-R

“RS” == Robert Spier rspier@pobox.com writes:

RS> On my todo list (in my personal RT) is a ‘diff script’ that
RS> automatically does the appropriate diffs and presents it in an easy
RS> form.

Sounds a lot like FreeBSD’s “mergemaster” program.

Once again, I’ll recommend that you run a local copy of CVS. It’s the “diff
script” that you’re looking for. It tracks all the changes for you, which
makes it easy to upgrade to new versions. Upgrades became million times
easier, especially as the number of files updated went up.

O- ~ARK