From 6f08830062695fbb7c2e1db6cad451e2fb8efd94 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Fri, 14 Aug 2015 14:41:48 +0800 Subject: Bug 1181596 - Modal UI doesn't honor the "where to put the additional comment textarea" preference --- .../template/en/default/bug_modal/edit.html.tmpl | 86 ++++++++++++++-------- 1 file changed, 55 insertions(+), 31 deletions(-) (limited to 'extensions/BugModal/template') diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index 7e77e1582..fd193b182 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -1017,7 +1017,11 @@ [% IF user.id %]
- + [% IF user.settings.comment_box_position.value == 'after_comments' %] + + [% ELSE %] + + [% END %] [%+ Hook.process('top_actions') %]
@@ -1028,49 +1032,69 @@ [%# === comments === %] [% + IF user.settings.comment_box_position.value == 'before_comments'; + INCLUDE new_comment; + END; INCLUDE bug_modal/activity_stream.html.tmpl stream=bug.activity_stream; - IF user.id; - INCLUDE bug_modal/new_comment.html.tmpl; - ELSE; - %] -
- You need to log in - before you can comment on or make changes to this [% terms.bug %]. -
- [% + IF user.settings.comment_box_position.value == 'after_comments'; + INCLUDE new_comment; END; %] [%# === bottom actions === %] -[% IF user.id %] -
- - [% - IF bug.resolution == ""; - seen_header = 0; - FOREACH resolution IN ["FIXED", "INVALID", "DUPLICATE"]; - NEXT UNLESS bug.choices.resolution.only("name", resolution).size; - IF NOT seen_header; - seen_header = 1; - " Resolve as "; - END; - %] [% - END; - ELSIF bug.choices.bug_status.only("name", "REOPENED").size; - %] [% - END; - %] -
- +
+
+ + [% IF user.id %] -
+ [% END %]
+
+ +[% IF user.id %] [% END %] [%# === blocks === %] +[% BLOCK new_comment %] + [%# === new comment === %] + [% + IF user.id; + INCLUDE bug_modal/new_comment.html.tmpl; + ELSE; + %] +
+ You need to log in + before you can comment on or make changes to this [% terms.bug %]. +
+ [% + END; + %] + [%# === comment actions === %] + [% IF user.id %] +
+ + [% + IF bug.resolution == ""; + seen_header = 0; + FOREACH resolution IN ["FIXED", "INVALID", "DUPLICATE"]; + NEXT UNLESS bug.choices.resolution.only("name", resolution).size; + IF NOT seen_header; + seen_header = 1; + " Resolve as "; + END; + %] [% + END; + ELSIF bug.choices.bug_status.only("name", "REOPENED").size; + %] [% + END; + %] +
+ [% END %] +[% END %] + [% BLOCK fields_lhs %]
[% content FILTER none %]
[% END %] -- cgit v1.2.3-24-g4f1b