5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
7 * Copyright 2012, Franck Villaume - TrivialDev
8 * http://fusionforge.org/
10 * This file is part of FusionForge. FusionForge is free software;
11 * you can redistribute it and/or modify it under the terms of the
12 * GNU General Public License as published by the Free Software
13 * Foundation; either version 2 of the Licence, or (at your option)
16 * FusionForge is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License along
22 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
31 use_javascript('/tabber/tabber.js');
32 html_use_coolfieldset();
34 $ath->header(array ('title'=> $ah->getStringID().' '. $ah->getSummary(), 'atid'=>$ath->getID()));
39 <form id="trackerdetailform" action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" method="post" enctype="multipart/form-data">
41 <?php if (session_loggedin()) { ?>
42 <table cellpadding="0" width="100%">
46 if ($ah->isMonitoring()) {
49 $text=_('Stop monitor');
56 <a id="tracker-monitor" href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor" title="'.util_html_secure(html_get_tooltip_description('monitor')).'"><strong>'.
57 html_image('ic/'.$img.'','20','20').' '.$text.'</strong></a>';
61 <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
66 <table border="0" width="80%">
68 <td><strong><?php echo _('Date') ?>:</strong><br /><?php echo date( _('Y-m-d H:i'), $ah->getOpenDate() ); ?></td>
69 <td><strong><?php echo _('Priority') ?>:</strong><br /><?php echo $ah->getPriority(); ?></td>
73 <td><strong><?php echo _('State') ?>:</strong><br /><?php echo $ah->getStatusName(); ?></td>
78 <strong><?php echo _('Submitted by') ?>:</strong><br />
79 <?php echo $ah->getSubmittedRealName();
80 if($ah->getSubmittedBy() != 100) {
81 $submittedUnixName = $ah->getSubmittedUnixName();
82 $submittedBy = $ah->getSubmittedBy();
84 (<tt><?php echo util_make_link_u ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
87 <td><strong><?php echo _('Assigned to') ?>:</strong><br />
88 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)</td>
92 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any',array(),false,'DISPLAY');
93 $ath->renderRelatedTasks($group, $ah);
96 <tr><td colspan="2"><strong><?php echo _('Summary') ?>:</strong><br /><?php echo $ah->getSummary(); ?></td></tr>
100 <?php $ah->showDetails(); ?>
103 <div id="tabber" class="tabber">
105 $count=db_numrows($ah->getMessages());
106 $nb = $count? ' ('.$count.')' : '';
108 <div class="tabbertab" title="<?php echo _('Followups').$nb; ?>">
111 <?php if (forge_check_perm ('tracker',$ath->getID(),'submit')) { ?>
112 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
113 <input type="hidden" name="func" value="postmod" />
114 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
115 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
117 <strong><?php echo _('Add A Comment') ?>:</strong>
118 <?php echo notepad_button('document.forms.trackerdetailform.details') ?><br />
119 <textarea name="details" rows="10" cols="60"></textarea>
124 <h2><?php echo _('Followups: ') ; ?></h2>
125 <?php echo $ah->showMessages(); ?>
131 $file_list = $ah->getFiles();
132 $count=count($file_list);
133 $nb = $count? ' ('.$count.')' : '';
135 <div class="tabbertab" title="<?php echo _('Attachments').$nb; ?>">
138 <?php if (session_loggedin() && ($ah->getSubmittedBy() == user_getid())) { ?>
139 <strong><?php echo _('Attach Files'); ?>:</strong> <?php echo('('._('max upload size: '.human_readable_bytes(util_get_maxuploadfilesize())).')') ?><br />
140 <input type="file" name="input_file0" size="30" /><br />
141 <input type="file" name="input_file1" size="30" /><br />
142 <input type="file" name="input_file2" size="30" /><br />
143 <input type="file" name="input_file3" size="30" /><br />
144 <input type="file" name="input_file4" size="30" />
147 <h2><?php echo _('Attached Files') ?>:</h2>
150 // print a list of files attached to this Artifact
152 $ath->renderFiles($group_id, $ah);
157 <div class="tabbertab" title="<?php echo _('Commits'); ?>" >
158 <table border="0" width="80%">
159 <tr><td colspan="2"><!-- dummy in case the hook is empty --></td></tr>
161 $hookParams['artifact_id'] = $aid;
162 $hookParams['group_id'] = $group_id;
163 plugin_hook("artifact_extra_detail",$hookParams);
167 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
168 <h2><?php echo _('Changes') ?></h2>
169 <?php $ah->showHistory(); ?>
171 <?php $ah->showRelations(); ?>
176 $ath->footer(array());
180 // c-file-style: "bsd"