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 class="fullwidth">
46 if ($ah->isMonitoring()) {
49 $text=_('Stop Monitoring');
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') ?>" />
69 <strong><?php echo _('Date')._(':'); ?></strong><br />
70 <?php echo date( _('Y-m-d H:i'), $ah->getOpenDate() ); ?>
73 <strong><?php echo _('Priority')._(':'); ?></strong><br />
74 <?php echo $ah->getPriority(); ?>
80 <strong><?php echo _('State')._(':'); ?></strong><br />
81 <?php echo $ah->getStatusName(); ?>
87 <strong><?php echo _('Submitted by')._(':'); ?></strong><br />
88 <?php echo $ah->getSubmittedRealName();
89 if($ah->getSubmittedBy() != 100) {
90 $submittedUnixName = $ah->getSubmittedUnixName();
91 $submittedBy = $ah->getSubmittedBy();
93 (<tt><?php echo util_make_link_u ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
97 <strong><?php echo _('Assigned to')._(':'); ?></strong><br />
98 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)
103 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any',array(),false,'DISPLAY');
104 $ath->renderRelatedTasks($group, $ah);
109 <strong><?php echo _('Summary')._(':'); ?></strong><br />
110 <?php echo $ah->getSummary(); ?>
116 <?php $ah->showDetails(); ?>
119 <div id="tabber" class="tabber">
121 $count=db_numrows($ah->getMessages());
122 $nb = $count? ' ('.$count.')' : '';
124 <div class="tabbertab" title="<?php echo _('Comments').$nb; ?>">
127 <?php if (forge_check_perm ('tracker',$ath->getID(),'submit')) { ?>
128 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
129 <input type="hidden" name="func" value="postmod" />
130 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
131 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
133 <strong><?php echo _('Add A Comment')._(':'); ?></strong>
134 <?php echo notepad_button('document.forms.trackerdetailform.details') ?><br />
135 <textarea name="details" rows="10" cols="60"></textarea>
140 <h2><?php echo _('Comments')._(': '); ?></h2>
141 <?php $ah->showMessages(); ?>
147 $file_list = $ah->getFiles();
148 $count=count($file_list);
149 $nb = $count? ' ('.$count.')' : '';
151 <div class="tabbertab" title="<?php echo _('Attachments').$nb; ?>">
154 <?php if (session_loggedin() && ($ah->getSubmittedBy() == user_getid())) { ?>
155 <strong><?php echo _('Attach Files')._(':'); ?></strong> <?php echo('('._('max upload size: '.human_readable_bytes(util_get_maxuploadfilesize())).')') ?><br />
156 <input type="file" name="input_file0" size="30" /><br />
157 <input type="file" name="input_file1" size="30" /><br />
158 <input type="file" name="input_file2" size="30" /><br />
159 <input type="file" name="input_file3" size="30" /><br />
160 <input type="file" name="input_file4" size="30" /><br />
162 <h2><?php echo _('Attached Files')._(':'); ?></h2>
165 // print a list of files attached to this Artifact
167 $ath->renderFiles($group_id, $ah);
172 <div class="tabbertab" title="<?php echo _('Commits'); ?>" >
173 <table border="0" width="80%">
174 <tr><td colspan="2"><!-- dummy in case the hook is empty --></td></tr>
176 $hookParams['artifact_id'] = $aid;
177 $hookParams['group_id'] = $group_id;
178 plugin_hook("artifact_extra_detail",$hookParams);
182 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
183 <h2><?php echo _('Changes') ?></h2>
184 <?php $ah->showHistory(); ?>
186 <?php $ah->showRelations(); ?>
191 $ath->footer(array());
195 // c-file-style: "bsd"