Closed
Bug 138582
Opened 23 years ago
Closed 23 years ago
Convert (almost) all INCLUDEs to PROCESSes in templates
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.16
People
(Reporter: gerv, Assigned: gerv)
References
Details
Attachments
(1 file)
(deleted),
patch
|
bbaetz
:
review+
afranke
:
review+
|
Details | Diff | Splinter Review |
PROCESS is faster than INCLUDE; where we don't need the aliasing behaviour of
INCLUDE, we should use PROCESS. This is a search-and-replace job, basically -
there's only about one place we need INCLUDE - that's in dependency-tree.html.tmpl.
Gerv
Assignee | ||
Comment 1•23 years ago
|
||
We need the patch on bug 135707 first, because it touches all the same lines of
the templates.
Gerv
Assignee | ||
Updated•23 years ago
|
Target Milestone: --- → Bugzilla 2.16
Assignee | ||
Comment 2•23 years ago
|
||
All INCLUDEs to PROCESS where appropriate.
Gerv
Assignee | ||
Comment 3•23 years ago
|
||
This patch is not affected by the files I forgot, which all used PROCESS anyway.
It's ready for review (and blocking any further work on the templates :-( ).
Gerv
Assignee | ||
Comment 4•23 years ago
|
||
Taking.
Gerv
Updated•23 years ago
|
Attachment #80103 -
Flags: review+
Comment 5•23 years ago
|
||
Comment on attachment 80103 [details] [diff] [review]
Patch v.1
I can't actually apply this to test (because you're using the new templaet
stuff), but its just changing header and footers except for one case.
r=bbaetz
Comment 6•23 years ago
|
||
This is the essence of the patch (i.e. all bug header/footer changes):
ggrep -E '^[\+-]' include2process.patch | grep -v global/header.html.tmpl | grep
-v global/footer.html.tmpl | grep -v '+++ template/en/default' | grep -v '\-\-\-
template/en/default'
1. In template/en/default/account/prefs/prefs.html.tmpl , looks ok:
- [% INCLUDE "account/prefs/${current_tab.name}.html.tmpl" IF
current_tab.name.defined %]
+ [% PROCESS "account/prefs/${current_tab.name}.html.tmpl" IF
current_tab.name.defined %]
2. In template/en/default/bug/activity/show.html.tmpl , looks ok:
-[% INCLUDE bug/activity/table.html.tmpl %]
+[% PROCESS bug/activity/table.html.tmpl %]
3. In template/en/default/bug/create/created.html.tmpl , looks ok:
-[% INCLUDE bug/navigate.html.tmpl %]
+[% PROCESS bug/navigate.html.tmpl %]
4. In template/en/default/bug/edit.html.tmpl , looks ok:
- [% INCLUDE attachment/list.html.tmpl
+ [% PROCESS attachment/list.html.tmpl
5. In template/en/default/bug/show-multiple.html.tmpl :
This should probably fixed to read global/footer.html.tmpl :-)
If you fix this, you have r=afranke. Testing this patch now.
IMO there's no need for a new patch, so fix this and check it in.
-[% INCLUDE global/footer %]
+[% PROCESS global/footer %]
Comment 7•23 years ago
|
||
Comment on attachment 80103 [details] [diff] [review]
Patch v.1
Or, better yet, fix the footer --> footer.html.tmpl in a separate checkin after
this one. You have an implicit r=afranke x2 on that one.
Attachment #80103 -
Flags: review+
Assignee | ||
Comment 8•23 years ago
|
||
All fixed. Excellent :-)
Gerv
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•