From 6175b77614e30d2e60d984cccc109670722bb5cf Mon Sep 17 00:00:00 2001
From: Vitaliy Filippov
Date: Fri, 23 May 2014 16:02:00 +0400
Subject: [PATCH] Move session_result to a separate template
---
.../en/default/bug/session_result.html.tmpl | 63 +++++++++++++++++++
template/en/default/bug/show.html.tmpl | 59 +----------------
2 files changed, 64 insertions(+), 58 deletions(-)
create mode 100644 template/en/default/bug/session_result.html.tmpl
diff --git a/template/en/default/bug/session_result.html.tmpl b/template/en/default/bug/session_result.html.tmpl
new file mode 100644
index 000000000..908fec406
--- /dev/null
+++ b/template/en/default/bug/session_result.html.tmpl
@@ -0,0 +1,63 @@
+[%# This template shows result for previous operation loaded from session
+ # License: Dual-license MPL 1.1+ or GPL 3.0+
+ # Author(s): Vitaliy Filippov %]
+
+[% IF added_attachments %]
+[% FOR att = added_attachments %]
+
+ -
+ Attachment #[% att.id %]
+ to [% "$terms.bug $att.bug_id" FILTER bug_link(att.bug_id) FILTER none %] created
+
+ -
+ [% IF att.ctype_auto %]
+
+ Note: [% terms.Bugzilla %] automatically detected the content type
+ [% att.contenttype | html %] for this attachment. If this is
+ incorrect, correct the value by editing the attachment's
+ details.
+
+ [% END %]
+ [% Hook.process("added_attachment_links") %]
+
+
+[% IF att.convertedbmp %]
+
+ Note: [% terms.Bugzilla %] automatically converted your BMP image file to a
+ compressed PNG format.
+
+[% END %]
+[% END %]
+[% END %]
+
+[% IF changed_attachment %]
+[% SET title = "Changes Submitted to Attachment $changed_attachment.id of $terms.Bug $changed_attachment.bug_id" %]
+
+ - Changes to
+ attachment [% changed_attachment.id %]
+ of [% "$terms.bug $changed_attachment.bug_id" FILTER bug_link(changed_attachment.bug_id) FILTER none %] submitted
+
+
+[% END %]
+
+[% FOREACH item = sentmail %]
+ [% FOR k = item.keys; $k = item.$k; END %]
+ [% PROCESS bug/process/results.html.tmpl item %]
+ [% FOR k = item.keys; $k = ''; END %]
+[% END %]
+
+[% IF added_attachments %]
+
+ Create Another Attachment to [% terms.Bug %] [%+ added_attachments.0.bug_id %]
+
+[% END %]
+
+[% IF nextbug %]
+
+
+ The next [% terms.bug %] in your list is [% terms.bug %]
+ [% bug.bug_id %]:
+
+
+[% END %]
diff --git a/template/en/default/bug/show.html.tmpl b/template/en/default/bug/show.html.tmpl
index d33c228ea..cc2016d10 100644
--- a/template/en/default/bug/show.html.tmpl
+++ b/template/en/default/bug/show.html.tmpl
@@ -33,64 +33,7 @@
[% header_done = 1 %]
-[% IF added_attachments %]
-[% FOR att = added_attachments %]
-
- -
- Attachment #[% att.id %]
- to [% "$terms.bug $att.bug_id" FILTER bug_link(att.bug_id) FILTER none %] created
-
- -
- [% IF att.ctype_auto %]
-
- Note: [% terms.Bugzilla %] automatically detected the content type
- [% att.contenttype | html %] for this attachment. If this is
- incorrect, correct the value by editing the attachment's
- details.
-
- [% END %]
- [% Hook.process("added_attachment_links") %]
-
-
-[% IF att.convertedbmp %]
-
- Note: [% terms.Bugzilla %] automatically converted your BMP image file to a
- compressed PNG format.
-
-[% END %]
-[% END %]
-[% END %]
-
-[% IF changed_attachment %]
-[% SET title = "Changes Submitted to Attachment $changed_attachment.id of $terms.Bug $changed_attachment.bug_id" %]
-
- - Changes to
- attachment [% changed_attachment.id %]
- of [% "$terms.bug $changed_attachment.bug_id" FILTER bug_link(changed_attachment.bug_id) FILTER none %] submitted
-
-
-[% END %]
-
-[% FOREACH item = sentmail %]
- [% FOR k = item.keys; $k = item.$k; END %]
- [% PROCESS bug/process/results.html.tmpl %]
-[% END %]
-
-[% IF added_attachments %]
-
- Create Another Attachment to [% terms.Bug %] [%+ added_attachments.0.bug_id %]
-
-[% END %]
-
-[% IF nextbug %]
-
-
- The next [% terms.bug %] in your list is [% terms.bug %]
- [% bug.bug_id %]:
-
-
-[% END %]
+[% PROCESS bug/session_result.html.tmpl %]
[% PROCESS bug/navigate.html.tmpl %]