Closed
Bug 323525
Opened 19 years ago
Closed 19 years ago
Style the group table as all other tables in Bugzilla
Categories
(Bugzilla :: User Interface, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.22
People
(Reporter: pjdemarco, Assigned: cso)
References
Details
Attachments
(1 file, 2 obsolete files)
|
3.70 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
When pressing groups (editgroups.cgi) you get a table. This table does not have the same look as other tables in Bugzilla.
Comment 1•19 years ago
|
||
template/en/default/admin/groups/list.html.tmpl should use template/en/default/admin/table.html.tmpl.
| Assignee | ||
Comment 2•19 years ago
|
||
Patch v1
Comment 3•19 years ago
|
||
Comment on attachment 209397 [details] [diff] [review]
Patch v1
>+ {name => 'userregexp'
>+ heading => 'User RegExp'
>+ allow_html_content => 1
>+ }
No, no html content is allowed here. It must be filtered.
>+ {name => 'use_for'
>+ heading => "Use For $terms.Bugs"
>+ allow_html_content => 1
>+ }
Same remark here.
>+[% FOREACH group = groups %]
>+ [% group.name = BLOCK %]
>+ [% group.name FILTER html %]
>+ [% END %]
No need to filter fields here. table.html.tmpl does it for you already, unless allow_html_content is set.
>+ [% group.userregexp = BLOCK %]
>+ [% IF group.userregexp %]
>+ [% group.userregexp FILTER html %]
>+ [% ELSE %]
>+ [% " " FILTER none %]
>+ [% END %]
>+ [% END %]
Use 'overrides' for that. Read the INTERFACE of table.html.tmpl for more information.
>+ [% group.use_for = BLOCK %]
>+ [% IF (group.isactive != 0) && (group.isbuggroup) %]
>+ X
>+ [% ELSE %]
>+
>+ [% END %]
>+ [% END %]
Same remark here.
>+ [% group.type = BLOCK %]
>+ [% (group.isbuggroup) ? "user" : "system" %]
>+ [% END %]
And here.
Attachment #209397 -
Flags: review?(LpSolit) → review-
| Assignee | ||
Comment 4•19 years ago
|
||
(In reply to comment #3)
> (From update of attachment 209397 [details] [diff] [review] [edit])
>
> >+ {name => 'userregexp'
> >+ heading => 'User RegExp'
> >+ allow_html_content => 1
> >+ }
>
> No, no html content is allowed here. It must be filtered.
The only way to get to appear (as far as I could see) was to allow_html_content.
> Use 'overrides' for that. Read the INTERFACE of table.html.tmpl
> for more information.
I've read the INTERFACE, and I've looked at the example, and I'm completely baffled as to how it works.
| Assignee | ||
Comment 5•19 years ago
|
||
I think I finally got the hang of interfaces...
Attachment #209397 -
Attachment is obsolete: true
Attachment #215585 -
Flags: review?(LpSolit)
| Assignee | ||
Comment 6•19 years ago
|
||
I think I finally got the hang of interfaces...
Attachment #215586 -
Flags: review?(LpSolit)
| Assignee | ||
Updated•19 years ago
|
Attachment #215585 -
Attachment is obsolete: true
Attachment #215585 -
Flags: review?(LpSolit)
Comment 7•19 years ago
|
||
Comment on attachment 215586 [details] [diff] [review]
Patch v2.
>+ {name => 'use_for'
>+ heading => "Use For $terms.Bugs"
>+ }
>+ {name => 'type'
>+ heading => 'Type'
>+ }
Please add: align => 'center' for both of them. This can be fixed on checkin. r=LpSolit
Attachment #215586 -
Flags: review?(LpSolit) → review+
Updated•19 years ago
|
Flags: approval?
Updated•19 years ago
|
Flags: approval? → approval+
Comment 8•19 years ago
|
||
Checking in template/en/default/admin/groups/list.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/admin/groups/list.html.tmpl,v <-- list.html.tmpl
new revision: 1.5; previous revision: 1.4
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 10•19 years ago
|
||
reopening just to make sure it doesn't get lost since we still have pending checkin
Status: RESOLVED → REOPENED
Flags: approval2.22? → approval2.22+
Resolution: FIXED → ---
Comment 11•19 years ago
|
||
2.22:
Checking in template/en/default/admin/groups/list.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/admin/groups/list.html.tmpl,v <-- list.html.tmpl
new revision: 1.4.2.1; previous revision: 1.4
done
Status: REOPENED → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → FIXED
Target Milestone: Bugzilla 2.24 → Bugzilla 2.22
You need to log in
before you can comment on or make changes to this bug.
Description
•