5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
7 * http://fusionforge.org/
9 * This file is part of FusionForge. FusionForge is free software;
10 * you can redistribute it and/or modify it under the terms of the
11 * GNU General Public License as published by the Free Software
12 * Foundation; either version 2 of the Licence, or (at your option)
15 * FusionForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 use_javascript('/tabber/tabber.js');
27 if (getStringFromRequest('commentsort') == 'anti') {
28 $sort_comments_chronologically = false;
30 $sort_comments_chronologically = true;
33 $ath->header(array ('title'=>'[#'. $ah->getID(). '] ' . $ah->getSummary(), 'atid'=>$ath->getID()));
38 <h1>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h1>
40 <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">
41 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
42 <input type="hidden" name="func" value="postmod" />
43 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
44 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
48 if (session_loggedin()) {
52 if ($ah->isMonitoring()) {
55 $text=_('Stop monitor');
62 <a id="tracker-monitor" href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor" title="'.html_get_tooltip_description('monitor').'"><strong>'.
63 html_image('ic/'.$img.'','20','20').' '.$text.'</strong></a>';
67 if ($group->usesPM()) {
69 <a href="'.getStringFromServer('PHP_SELF').'?func=taskmgr&group_id='.$group_id.'&atid='.$atid.'&aid='.$aid.'">'.
70 html_image('ic/taskman20w.png','20','20').'<strong>'._('Build Task Relation').'</strong></a>';
75 <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
81 <table border="0" width="80%">
83 <td><strong><?php echo _('Submitted by') ?>:</strong><br />
85 echo $ah->getSubmittedRealName();
86 if($ah->getSubmittedBy() != 100) {
87 $submittedUnixName = $ah->getSubmittedUnixName();
88 $submittedBy = $ah->getSubmittedBy();
90 (<tt><?php echo util_make_link_u ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
93 <td><strong><?php echo _('Date Submitted') ?>:</strong><br />
95 echo date(_('Y-m-d H:i'), $ah->getOpenDate() );
97 $close_date = $ah->getCloseDate();
98 if ($ah->getStatusID()==2 && $close_date > 1) {
99 echo '<br /><strong>'._('Date Closed').':</strong><br />'
100 .date(_('Y-m-d H:i'), $close_date);
107 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any',array(),false,'UPDATE');
111 <td><strong><?php echo _('Assigned to')?>:</strong><br />
112 <span id="tracker-assigned_to" title="<?php echo html_get_tooltip_description('assigned_to') ?>">
113 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)
116 <strong><?php echo _('Priority') ?>:</strong><br />
117 <span id="tracker-priority" title="<?php echo html_get_tooltip_description('priority') ?>">
118 <?php echo $ah->getPriority(); ?>
124 <?php if (!$ath->usesCustomStatuses()) { ?>
125 <strong><?php echo _('State') ?>:</strong><br />
126 <span id="tracker-status_id" title="<?php echo html_get_tooltip_description('status_id') ?>">
127 <?php echo $ath->statusBox ('status_id', $ah->getStatusID() ); ?>
135 $ath->renderRelatedTasks($group, $ah);
136 $ath->renderFiles($group_id, $ah);
139 <td colspan="2"><strong><?php echo _('Summary')?><?php echo utils_requiredField(); ?>:</strong><br />
140 <span id="tracker-summary" title="<?php echo html_get_tooltip_description('summary') ?>">
141 <?php echo $ah->getSummary(); ?>
148 <?php echo $ah->showDetails(); ?>
151 <div id="tabber" class="tabber">
152 <div class="tabbertab" title="<?php echo _('Followups');?>">
153 <table border="0" width="80%">
155 <br /><strong><?php echo _('OR Attach A Comment') ?>: <?php echo notepad_button('document.forms.trackermodlimitedform.details') ?></strong><br />
156 <textarea id="tracker-comment" name="details" rows="7" cols="60" title="<?php echo html_get_tooltip_description('comment') ?>"></textarea>
158 <h2><?php echo _('Followups: ') ;
159 if ($sort_comments_chronologically) {
161 util_make_url('/tracker/index.php?func=detail&aid=' . $aid . '&group_id=' . $group_id . '&atid=' . $ath->getID() . '&commentsort=anti') .
162 '">' . _('Sort comments antichronologically') . '</a>';
165 util_make_url('/tracker/index.php?func=detail&aid=' . $aid . '&group_id=' . $group_id . '&atid=' . $ath->getID() . '&commentsort=chrono') .
166 '">' . _('Sort comments chronologically') . '</a>';
169 echo $ah->showMessages($sort_comments_chronologically);
174 <div class="tabbertab" title="<?php echo _('Attachments'); ?>">
175 <table border="0" width="80%">
177 <?php echo _('Attach Files') ?><br />
178 <input type="file" name="input_file0" size="30" /><br />
179 <input type="file" name="input_file1" size="30" /><br />
180 <input type="file" name="input_file2" size="30" /><br />
181 <input type="file" name="input_file3" size="30" /><br />
182 <input type="file" name="input_file4" size="30" /><br />
184 <h2><?php echo _('Attached Files') ?>:</h2>
187 // print a list of files attached to this Artifact
189 $ath->renderFiles($group_id, $ah);
194 <div class="tabbertab" title="<?php echo _('Commits'); ?>">
195 <table border="0" width="80%">
197 $hookParams['artifact_id']=$aid;
198 plugin_hook("artifact_extra_detail",$hookParams);
202 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
203 <table border="0" width="80%">
205 <h2><?php echo _('Change Log') ?>:</h2>
207 echo $ah->showHistory();
212 <?php $ah->showRelations(); ?>
217 $ath->footer(array());
221 // c-file-style: "bsd"