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 <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">
40 <?php if (session_loggedin()) { ?>
41 <table cellpadding="0" width="100%">
45 if ($ah->isMonitoring()) {
48 $text=_('Stop monitor');
55 <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>'.
56 html_image('ic/'.$img.'','20','20').' '.$text.'</strong></a>';
60 <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
65 <table border="0" width="80%">
67 <td><strong><?php echo _('Date') ?>:</strong><br /><?php echo date( _('Y-m-d H:i'), $ah->getOpenDate() ); ?></td>
68 <td><strong><?php echo _('Priority') ?>:</strong><br /><?php echo $ah->getPriority(); ?></td>
72 <td><strong><?php echo _('State') ?>:</strong><br /><?php echo $ah->getStatusName(); ?></td>
77 <strong><?php echo _('Submitted by') ?>:</strong><br />
78 <?php echo $ah->getSubmittedRealName();
79 if($ah->getSubmittedBy() != 100) {
80 $submittedUnixName = $ah->getSubmittedUnixName();
81 $submittedBy = $ah->getSubmittedBy();
83 (<tt><?php echo util_make_link_u ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
86 <td><strong><?php echo _('Assigned to') ?>:</strong><br />
87 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)</td>
91 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any',array(),false,'DISPLAY');
92 $ath->renderRelatedTasks($group, $ah);
95 <tr><td colspan="2"><strong><?php echo _('Summary') ?>:</strong><br /><?php echo $ah->getSummary(); ?></td></tr>
99 <?php echo $ah->showDetails(); ?>
102 <div id="tabber" class="tabber">
104 $count=db_numrows($ah->getMessages());
105 $nb = $count? ' ('.$count.')' : '';
107 <div class="tabbertab" title="<?php echo _('Followups').$nb; ?>">
110 <?php if ($ath->allowsAnon() || session_loggedin()) { ?>
111 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
112 <input type="hidden" name="func" value="postmod" />
113 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
114 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
116 <strong><?php echo _('Add A Comment') ?>:</strong>
117 <?php echo notepad_button('document.forms.trackerdetailform.details') ?><br />
118 <textarea name="details" rows="10" cols="60"></textarea>
123 <h2><?php echo _('Followups: ') ;
124 if ($sort_comments_chronologically) {
126 util_make_url('/tracker/index.php?func=detail&aid=' . $aid . '&group_id=' . $group_id . '&atid=' . $ath->getID() . '&commentsort=anti') .
127 '">' . _('Sort comments antichronologically') . '</a>';
130 util_make_url('/tracker/index.php?func=detail&aid=' . $aid . '&group_id=' . $group_id . '&atid=' . $ath->getID() . '&commentsort=chrono') .
131 '">' . _('Sort comments chronologically') . '</a>';
135 echo $ah->showMessages($sort_comments_chronologically);
142 $file_list = $ah->getFiles();
143 $count=count($file_list);
144 $nb = $count? ' ('.$count.')' : '';
146 <div class="tabbertab" title="<?php echo _('Attachments').$nb; ?>">
149 <?php if (session_loggedin() && ($ah->getSubmittedBy() == user_getid())) { ?>
150 <strong><?php echo _('Attach Files'); ?></strong><br />
151 <input type="file" name="input_file0" size="30" /><br />
152 <input type="file" name="input_file1" size="30" /><br />
153 <input type="file" name="input_file2" size="30" /><br />
154 <input type="file" name="input_file3" size="30" /><br />
155 <input type="file" name="input_file4" size="30" /><br />
158 <h2><?php echo _('Attached Files') ?>:</h2>
161 // print a list of files attached to this Artifact
163 $ath->renderFiles($group_id, $ah);
168 <div class="tabbertab" title="<?php echo _('Commits'); ?>" >
169 <table border="0" width="80%">
170 <tr><td colspan="2"><!-- dummy in case the hook is empty --></td></tr>
172 $hookParams['artifact_id'] = $aid;
173 $hookParams['group_id'] = $group_id;
174 plugin_hook("artifact_extra_detail",$hookParams);
178 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
182 <h2><?php echo _('Changes') ?>:</h2>
184 echo $ah->showHistory();
190 <?php $ah->showRelations(); ?>
195 $ath->footer(array());
199 // c-file-style: "bsd"