[%# P4DTI section of Bugzilla bug form. #%] [%# $Id: //info.ravenbrook.com/project/p4dti/version/2.4/code/bugzilla-2.17.7/template/en/extension/hook/bug/comments.html.tmpl/aftercomments/p4dti.html.tmpl#3 $ #%] [%# This document is copyright (C) 2004 Perforce Software, Inc. All # rights reserved. # # Redistribution and use of this document in any form, with or # without modification, is permitted provided that redistributions # of this document retain the above copyright notice, this condition # and the following disclaimer. # # THIS DOCUMENT IS PROVIDED BY THE COPYRIGHT HOLDERS AND # CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN # ANY WAY OUT OF THE USE OF THIS DOCUMENT, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. #%] [%# This is included as a hook in comments.html.tmpl, which is used in # various contexts. We must check for those contexts here. # # The contexts are as follows: # # - regular bug display (mode == 'edit') # - formatted for printing / "long list" (mode == 'show'); # - midair collision (start_at > 0). #%] [% IF (bug.p4dti.status != 'off') && (start_at == 0) %] [%# exclude midair collision case %]
[% IF (mode == 'edit') %] [%# eye-candy %]
[% END %] [% SWITCH bug.p4dti.status %] [% CASE "replicated" %] [% IF mode == 'edit' %]

Perforce replication:

[% END %] [% IF bug.p4dti.hasfixes %] [% ELSE %] [% END %] [% IF bug.p4dti.hasfilespecs %] [% END %]
Job: [% bug.p4dti.jobname %] Server: [% bug.p4dti.sid FILTER html %] [% IF bug.p4dti.config.p4_server_description %]: [% bug.p4dti.config.p4_server_description FILTER html %] [% END %] Replicator ID: [% bug.p4dti.rid FILTER html %]
[% FOREACH fix = bug.p4dti.fixes %] [% END %]
Change Effect Date User Description
[% fix.changelist %] [% fix.changelist_note %] [% fix.status FILTER html %] [% fix.p4date FILTER html %] [% fix.user_field %] [% fix.description FILTER html %]
Fixes: None
Filespecs [% FOREACH f = bug.p4dti.filespecs %] [% END %]
[% f FILTER html %]
[% CASE "notreplicated" %]

Not replicated in Perforce.

[% CASE "notables" %]

The Perforce database tables were not found. Consult your administrator.

[% CASE "off" %] [%# P4DTI parameter is turned off. No output. %] [% CASE %] [%# Bug's p4dti method has put a value in p4dti.status which I wasn't expecting. %]

This bug's Perforce data is invalid. Consult your administrator. [% bug.p4dti.status %]

[% END %]
[% END %]