Move session_result to a separate template
parent
b226af09ac
commit
6175b77614
|
@ -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 %]
|
||||
<dl>
|
||||
<dt>
|
||||
<a title="[% att.description | html %]"
|
||||
href="attachment.cgi?id=[% att.id %]&action=edit">Attachment #[% att.id %]</a>
|
||||
to [% "$terms.bug $att.bug_id" FILTER bug_link(att.bug_id) FILTER none %] created
|
||||
</dt>
|
||||
<dd>
|
||||
[% IF att.ctype_auto %]
|
||||
<p>
|
||||
<b>Note:</b> [% terms.Bugzilla %] automatically detected the content type
|
||||
<em>[% att.contenttype | html %]</em> for this attachment. If this is
|
||||
incorrect, correct the value by editing the attachment's
|
||||
<a href="attachment.cgi?id=[% att.id %]&action=edit">details</a>.
|
||||
</p>
|
||||
[% END %]
|
||||
[% Hook.process("added_attachment_links") %]
|
||||
</dd>
|
||||
</dl>
|
||||
[% IF att.convertedbmp %]
|
||||
<p>
|
||||
<b>Note:</b> [% terms.Bugzilla %] automatically converted your BMP image file to a
|
||||
compressed PNG format.
|
||||
</p>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
[% IF changed_attachment %]
|
||||
[% SET title = "Changes Submitted to Attachment $changed_attachment.id of $terms.Bug $changed_attachment.bug_id" %]
|
||||
<dl>
|
||||
<dt>Changes to
|
||||
<a href="attachment.cgi?id=[% changed_attachment.id %]&action=edit">attachment [% changed_attachment.id %]</a>
|
||||
of [% "$terms.bug $changed_attachment.bug_id" FILTER bug_link(changed_attachment.bug_id) FILTER none %] submitted
|
||||
</dt>
|
||||
</dl>
|
||||
[% 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 %]
|
||||
<a href="attachment.cgi?bugid=[% added_attachments.0.bug_id %]&action=enter">
|
||||
Create Another Attachment to [% terms.Bug %] [%+ added_attachments.0.bug_id %]</a>
|
||||
</p>
|
||||
[% END %]
|
||||
|
||||
[% IF nextbug %]
|
||||
<hr />
|
||||
<p>
|
||||
The next [% terms.bug %] in your list is [% terms.bug %]
|
||||
<a href="show_bug.cgi?id=[% bug.bug_id %]">[% bug.bug_id %]</a>:
|
||||
</p>
|
||||
<hr />
|
||||
[% END %]
|
|
@ -33,64 +33,7 @@
|
|||
|
||||
[% header_done = 1 %]
|
||||
|
||||
[% IF added_attachments %]
|
||||
[% FOR att = added_attachments %]
|
||||
<dl>
|
||||
<dt>
|
||||
<a title="[% att.description | html %]"
|
||||
href="attachment.cgi?id=[% att.id %]&action=edit">Attachment #[% att.id %]</a>
|
||||
to [% "$terms.bug $att.bug_id" FILTER bug_link(att.bug_id) FILTER none %] created
|
||||
</dt>
|
||||
<dd>
|
||||
[% IF att.ctype_auto %]
|
||||
<p>
|
||||
<b>Note:</b> [% terms.Bugzilla %] automatically detected the content type
|
||||
<em>[% att.contenttype | html %]</em> for this attachment. If this is
|
||||
incorrect, correct the value by editing the attachment's
|
||||
<a href="attachment.cgi?id=[% att.id %]&action=edit">details</a>.
|
||||
</p>
|
||||
[% END %]
|
||||
[% Hook.process("added_attachment_links") %]
|
||||
</dd>
|
||||
</dl>
|
||||
[% IF att.convertedbmp %]
|
||||
<p>
|
||||
<b>Note:</b> [% terms.Bugzilla %] automatically converted your BMP image file to a
|
||||
compressed PNG format.
|
||||
</p>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
[% IF changed_attachment %]
|
||||
[% SET title = "Changes Submitted to Attachment $changed_attachment.id of $terms.Bug $changed_attachment.bug_id" %]
|
||||
<dl>
|
||||
<dt>Changes to
|
||||
<a href="attachment.cgi?id=[% changed_attachment.id %]&action=edit">attachment [% changed_attachment.id %]</a>
|
||||
of [% "$terms.bug $changed_attachment.bug_id" FILTER bug_link(changed_attachment.bug_id) FILTER none %] submitted
|
||||
</dt>
|
||||
</dl>
|
||||
[% END %]
|
||||
|
||||
[% FOREACH item = sentmail %]
|
||||
[% FOR k = item.keys; $k = item.$k; END %]
|
||||
[% PROCESS bug/process/results.html.tmpl %]
|
||||
[% END %]
|
||||
|
||||
[% IF added_attachments %]
|
||||
<a href="attachment.cgi?bugid=[% added_attachments.0.bug_id %]&action=enter">
|
||||
Create Another Attachment to [% terms.Bug %] [%+ added_attachments.0.bug_id %]</a>
|
||||
</p>
|
||||
[% END %]
|
||||
|
||||
[% IF nextbug %]
|
||||
<hr />
|
||||
<p>
|
||||
The next [% terms.bug %] in your list is [% terms.bug %]
|
||||
<a href="show_bug.cgi?id=[% bug.bug_id %]">[% bug.bug_id %]</a>:
|
||||
</p>
|
||||
<hr />
|
||||
[% END %]
|
||||
[% PROCESS bug/session_result.html.tmpl %]
|
||||
|
||||
[% PROCESS bug/navigate.html.tmpl %]
|
||||
|
||||
|
|
Loading…
Reference in New Issue