From a9cc253262438ce20df7cda1b767a4020a854f77 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 19 Nov 2008 11:33:05 +0000 Subject: Bug 452732: Re-organize the comment headers to make them look better and be more readable Patch By Max Kanat-Alexander r=wicked, a=mkanat --- template/en/default/bug/comments.html.tmpl | 103 ++++++++++++++++------------- 1 file changed, 56 insertions(+), 47 deletions(-) (limited to 'template/en/default/bug/comments.html.tmpl') diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 127f4a5fb..1e8ee8c54 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -69,13 +69,13 @@ } function collapse_comment(link, comment) { - link.innerHTML = "(+)"; + link.innerHTML = "[+]"; link.title = "Expand the comment."; comment.className = "collapsed"; } function expand_comment(link, comment) { - link.innerHTML = "(-)"; + link.innerHTML = "[-]"; link.title = "Collapse the comment"; comment.className = ""; } @@ -84,9 +84,10 @@ * won't display this link */ function addCollapseLink(count) { - document.write(' (-) '); + '); return false;" title="Collapse the comment.">[-]<\/a> '); } //--> @@ -150,56 +151,64 @@ [% " bz_first_comment" IF count == description %]"> [% IF count == description %] [% class_name = "bz_first_comment_head" %] - [% comment_label = "" %] - [% comment_link = "Description" %] - [% decoration = "" %] + [% comment_label = "Description" %] [% ELSE %] [% class_name = "bz_comment_head" %] - [% comment_label = "Comment" %] - [% comment_link = "#" _ count %] - [% decoration = '-------' %] + [% comment_label = "Comment " _ count %] [% END %] - - [%# Do not filter decoration as it's a real HTML tag. No XSS risk. %] - [% decoration FILTER none %] - [% comment_label FILTER html %] - - [% comment_link FILTER html %] From - - - - [% FOREACH group = comment.author.direct_group_membership %] - [% NEXT UNLESS group.icon_url %] - [% group.name FILTER html %] - [% END %] - - [%+ comment.time FILTER time %] +
[% IF mode == "edit" %] - + + + [% END %] - [%+ decoration FILTER none %] - - - [% IF mode == "edit" && isinsider %] - - - - - - [% END %] + + [% IF mode == "edit" && isinsider %] +
+ + + +
+ [% END %] + + + + [%- comment_label FILTER html %] + + + + + + + + + + [% FOREACH group = comment.author.direct_group_membership %] + [% NEXT UNLESS group.icon_url %] + [% group.name FILTER html %] + [% END %] + + + + [%+ comment.time FILTER time %] + +
+ [% IF user.in_group(Param('timetrackinggroup')) && (comment.work_time > 0 || comment.work_time < 0) %]
-- cgit v1.2.3-24-g4f1b