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.
26 use_javascript('/tabber/tabber.js');
35 if (getStringFromRequest('commentsort') == 'anti') {
36 $sort_comments_chronologically = false;
38 $sort_comments_chronologically = true;
40 html_use_coolfieldset();
41 $ath->header(array ('title'=>'[#'. $ah->getID(). '] ' . $ah->getSummary(), 'atid'=>$ath->getID()));
46 <h1>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h1>
48 <form id="trackermodlimitedform" action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" enctype="multipart/form-data" method="post">
49 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
50 <input type="hidden" name="func" value="postmod" />
51 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
52 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
56 if (session_loggedin()) {
60 if ($ah->isMonitoring()) {
63 $text=_('Stop monitor');
70 <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>'.
71 html_image('ic/'.$img.'','20','20').' '.$text.'</strong></a>';
75 if ($group->usesPM()) {
77 <a href="'.getStringFromServer('PHP_SELF').'?func=taskmgr&group_id='.$group_id.'&atid='.$atid.'&aid='.$aid.'">'.
78 html_image('ic/taskman20w.png','20','20').'<strong>'._('Build Task Relation').'</strong></a>';
83 <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
89 <table border="0" width="80%">
91 <td><strong><?php echo _('Submitted by') ?>:</strong><br />
93 echo $ah->getSubmittedRealName();
94 if($ah->getSubmittedBy() != 100) {
95 $submittedUnixName = $ah->getSubmittedUnixName();
96 $submittedBy = $ah->getSubmittedBy();
98 (<tt><?php echo util_make_link_u ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
101 <td><strong><?php echo _('Date Submitted') ?>:</strong><br />
103 echo date(_('Y-m-d H:i'), $ah->getOpenDate() );
105 $close_date = $ah->getCloseDate();
106 if ($ah->getStatusID()==2 && $close_date > 1) {
107 echo '<br /><strong>'._('Date Closed').':</strong><br />'
108 .date(_('Y-m-d H:i'), $close_date);
115 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any',array(),false,'UPDATE');
119 <td><strong><?php echo _('Assigned to')?>:</strong><br />
120 <span id="tracker-assigned_to" title="<?php echo util_html_secure(html_get_tooltip_description('assigned_to')) ?>">
121 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)
124 <strong><?php echo _('Priority') ?>:</strong><br />
125 <span id="tracker-priority" title="<?php echo util_html_secure(html_get_tooltip_description('priority')) ?>">
126 <?php echo $ah->getPriority(); ?>
132 <?php if (!$ath->usesCustomStatuses()) { ?>
133 <strong><?php echo _('State') ?>:</strong><br />
134 <span id="tracker-status_id" title="<?php echo util_html_secure(html_get_tooltip_description('status_id')) ?>">
135 <?php echo $ath->statusBox ('status_id', $ah->getStatusID() ); ?>
143 $ath->renderRelatedTasks($group, $ah);
144 $ath->renderFiles($group_id, $ah);
147 <td colspan="2"><strong><?php echo _('Summary')?><?php echo utils_requiredField(); ?>:</strong><br />
148 <span id="tracker-summary" title="<?php echo util_html_secure(html_get_tooltip_description('summary')) ?>">
149 <?php echo $ah->getSummary(); ?>
156 <?php echo $ah->showDetails(); ?>
159 <div id="tabber" class="tabber">
161 $count=db_numrows($ah->getMessages());
162 $nb = $count? ' ('.$count.')' : '';
164 <div class="tabbertab" title="<?php echo _('Followups').$nb; ?>">
167 <br /><strong><?php echo _('Add A Comment') ?>: <?php echo notepad_button('document.forms.trackermodlimitedform.details') ?></strong><br />
168 <textarea id="tracker-comment" name="details" rows="7" cols="60" title="<?php echo util_html_secure(html_get_tooltip_description('comment')) ?>"></textarea>
170 <h2><?php echo _('Followups: ') ;
171 if ($sort_comments_chronologically) {
173 util_make_url('/tracker/index.php?func=detail&aid=' . $aid . '&group_id=' . $group_id . '&atid=' . $ath->getID() . '&commentsort=anti') .
174 '">' . _('Sort comments antichronologically') . '</a>';
177 util_make_url('/tracker/index.php?func=detail&aid=' . $aid . '&group_id=' . $group_id . '&atid=' . $ath->getID() . '&commentsort=chrono') .
178 '">' . _('Sort comments chronologically') . '</a>';
181 echo $ah->showMessages($sort_comments_chronologically);
188 $file_list = $ah->getFiles();
189 $count=count($file_list);
190 $nb = $count? ' ('.$count.')' : '';
192 <div class="tabbertab" title="<?php echo _('Attachments').$nb; ?>">
193 <h2><?php echo _('Existing Files') ?>:</h2>
196 <?php echo _('Attach Files') ?>: <?php echo('('._('max upload size: '.human_readable_bytes(util_get_maxuploadfilesize())).')') ?><br />
197 <input type="file" name="input_file0" size="30" /><br />
198 <input type="file" name="input_file1" size="30" /><br />
199 <input type="file" name="input_file2" size="30" /><br />
200 <input type="file" name="input_file3" size="30" /><br />
201 <input type="file" name="input_file4" size="30" />
203 <h2><?php echo _('Attached Files') ?>:</h2>
206 // print a list of files attached to this Artifact
208 $ath->renderFiles($group_id, $ah);
213 <div class="tabbertab" title="<?php echo _('Commits'); ?>">
214 <table border="0" width="80%">
215 <tr><td colspan="2"><!-- dummy in case the hook is empty --></td></tr>
217 $hookParams['artifact_id'] = $aid;
218 $hookParams['group_id'] = $group_id;
219 plugin_hook("artifact_extra_detail",$hookParams);
223 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
224 <table border="0" width="80%">
226 <h2><?php echo _('Change Log') ?>:</h2>
228 echo $ah->showHistory();
233 <?php $ah->showRelations(); ?>
238 $ath->footer(array());
242 // c-file-style: "bsd"