Closed Bug 141639 Opened 22 years ago Closed 22 years ago

templatize template parameters in header.html.tmpl

Categories

(Bugzilla :: Bugzilla-General, defect)

2.15
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: myk, Assigned: justdave)

Details

Attachments

(1 file)

Bug 140435 templatizes the "template parameters" (parameters containing a crude
form of templates by which installations have been able to customize their look
and feel in previous versions of Bugzilla) for footer.html.tmpl.  If it's
necessary for footer.html.tmpl, then it's also necessary for header.html.tmpl.
Target Milestone: --- → Bugzilla 2.16
Keywords: patch, review
Comment on attachment 81961 [details] [diff] [review]
patch v1: templatizes template parameters for header.html.tmpl

>Index: template/en/default/global/banner.html.tmpl
>===================================================================
<...>
>+<center>
>+	<font size="-1">Bugzilla version [% Param('version') %]</font>
>+</center>

Can we use <small> there instead of <font size="-1"> ?	Other than that,
r=caillon.
Attachment #81961 - Flags: review+
This has been done on the patch in bug 140435, though, although gerv didn't
split the banner out to a separate template - I don't think thats needed, since
its probably the first thing to be customised on an installation.
I would like to see banner being a separate template.  It would be rare someone
would want to customise header other than the banner part, so I'd rather they
don't need to update when we update the header template.
Yeah, this is happening over in bug 140435. The latest patch has commandmenu as
a separate template, but not banner; if you want that split out, comment in that
bug. I don't think it's actually the right thing to do - but we can discuss that
over in bug 140435. :-)

Gerv
Do I understand correctly here that the patch on this bug conflicts with the one
on bug 140435?
It conflicts/is redundant/etc.
Making this bug depend on bug 140435.
Depends on: 140435
Removing dependency.  How does the patch on 140435 templatize the header
parameters?  As far as I can tell it doesn't touch them.  Also, yes, bannerhtml
should be a separate template to minimize forking when it gets customized.
No longer depends on: 140435
Yeah, there's been a bit of confusion here. header.html.tmpl got done over in
bug 140993; the redundant params are being removed (and archived) over in bug
140437.

The banner is currently not a separate template; if you think this should be
done, we should probably file a separate bug rather than morph this one. But,
frankly, I don't think it's worth it - I doubt anyone will customise _just_ the
banner, and if they are customising anything else, they need to edit
header.html.tmpl anyway.

I think that we need to accept that people's header.html.tmpl and
footer.html.tmpl are going to be heavily munged, and there's not much we can do
to make their updating life easier, apart from not break the interfaces.

Myk or Dave - I'll leave it to you to either morph or close this bug.

Gerv
>The banner is currently not a separate template;

That's a regression from the check-in of bug 140993.

>if you think this should be
>done, we should probably file a separate bug rather than morph this one.
>But, frankly, I don't think it's worth it - I doubt anyone will customise _just_
>the banner, and if they are customising anything else, they need to edit
>header.html.tmpl anyway.

The banner is the only mozilla.org-specific part of header.html.tmpl, so there's
good reason to believe installations will customize it first and only.

Closing this bug nevertheless since that's a different bug, and the work in this
bug has been duplicated in bug 140993.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: