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 if (getStringFromRequest('commentsort') == 'anti') {
35 $sort_comments_chronologically = false;
37 $sort_comments_chronologically = true;
40 $ath->header(array ('title'=>'[#'. $ah->getID(). '] ' . $ah->getSummary(), 'atid'=>$ath->getID()));
45 <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">
47 <?php if (session_loggedin()) { ?>
48 <table cellpadding="0" width="100%">
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="'.util_html_secure(html_get_tooltip_description('monitor')).'"><strong>'.
63 html_image('ic/'.$img.'','20','20').' '.$text.'</strong></a>';
67 <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
72 <table border="0" width="80%">
74 <td><strong><?php echo _('Date') ?>:</strong><br /><?php echo date( _('Y-m-d H:i'), $ah->getOpenDate() ); ?></td>
75 <td><strong><?php echo _('Priority') ?>:</strong><br /><?php echo $ah->getPriority(); ?></td>
79 <td><strong><?php echo _('State') ?>:</strong><br /><?php echo $ah->getStatusName(); ?></td>
84 <strong><?php echo _('Submitted by') ?>:</strong><br />
85 <?php 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 _('Assigned to') ?>:</strong><br />
94 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)</td>
98 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any',array(),false,'DISPLAY');
99 $ath->renderRelatedTasks($group, $ah);
102 <tr><td colspan="2"><strong><?php echo _('Summary') ?>:</strong><br /><?php echo $ah->getSummary(); ?></td></tr>
106 <?php echo $ah->showDetails(); ?>
109 <div id="tabber" class="tabber">
111 $count=db_numrows($ah->getMessages());
112 $nb = $count? ' ('.$count.')' : '';
114 <div class="tabbertab" title="<?php echo _('Followups').$nb; ?>">
117 <?php if ($ath->allowsAnon() || session_loggedin()) { ?>
118 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
119 <input type="hidden" name="func" value="postmod" />
120 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
121 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
123 <strong><?php echo _('Add A Comment') ?>:</strong>
124 <?php echo notepad_button('document.forms.trackerdetailform.details') ?><br />
125 <textarea name="details" rows="10" cols="60"></textarea>
130 <h2><?php echo _('Followups: ') ;
131 if ($sort_comments_chronologically) {
133 util_make_url('/tracker/index.php?func=detail&aid=' . $aid . '&group_id=' . $group_id . '&atid=' . $ath->getID() . '&commentsort=anti') .
134 '">' . _('Sort comments antichronologically') . '</a>';
137 util_make_url('/tracker/index.php?func=detail&aid=' . $aid . '&group_id=' . $group_id . '&atid=' . $ath->getID() . '&commentsort=chrono') .
138 '">' . _('Sort comments chronologically') . '</a>';
142 echo $ah->showMessages($sort_comments_chronologically);
149 $file_list = $ah->getFiles();
150 $count=count($file_list);
151 $nb = $count? ' ('.$count.')' : '';
153 <div class="tabbertab" title="<?php echo _('Attachments').$nb; ?>">
156 <?php if (session_loggedin() && ($ah->getSubmittedBy() == user_getid())) { ?>
157 <strong><?php echo _('Attach Files'); ?></strong><br />
158 <input type="file" name="input_file0" size="30" /><br />
159 <input type="file" name="input_file1" size="30" /><br />
160 <input type="file" name="input_file2" size="30" /><br />
161 <input type="file" name="input_file3" size="30" /><br />
162 <input type="file" name="input_file4" size="30" />
165 <h2><?php echo _('Attached Files') ?>:</h2>
168 // print a list of files attached to this Artifact
170 $ath->renderFiles($group_id, $ah);
175 <div class="tabbertab" title="<?php echo _('Commits'); ?>" >
176 <table border="0" width="80%">
177 <tr><td colspan="2"><!-- dummy in case the hook is empty --></td></tr>
179 $hookParams['artifact_id'] = $aid;
180 $hookParams['group_id'] = $group_id;
181 plugin_hook("artifact_extra_detail",$hookParams);
185 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
189 <h2><?php echo _('Changes') ?>:</h2>
191 echo $ah->showHistory();
197 <?php $ah->showRelations(); ?>
202 $ath->footer(array());
206 // c-file-style: "bsd"