"Fossies" - the Fresh Open Source Software Archive

Member "flyspray-1.0-rc9/themes/CleanFS/templates/editcomment.tpl" (22 Apr 2019, 4678 Bytes) of package /linux/privat/flyspray-1.0-rc9.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <div class="box">
    2 	<div class="comment_container">
    3 		<div class="comment_avatar"><?php echo tpl_userlinkavatar($user->id, $fs->prefs['max_avatar_size'], 'av_comment'); ?></div>
    4 		<div class="comment">
    5 			<div class="comment_header">
    6 				<div class="comment_header_actions">
    7 					<?php
    8 						$theuser = new User($comment['user_id']);
    9 						if (!$theuser->isAnon()) {
   10 							if ($theuser->perms('is_admin')) {
   11 								$rank = 'Admin';
   12 							}
   13 							else if ($theuser->perms('manage_project')) {
   14 								$rank = 'Project Manager';
   15 							}
   16 							else {
   17 								$rank = '';
   18 							}
   19 
   20 							if (!empty($rank)) {
   21 								echo '<span class="comment_header_usertype">'.Filters::noXSS($rank).'</span>';
   22 							}
   23 						}
   24 					?>
   25 				</div>
   26 				<div class="comment_header_infos"><?php echo tpl_userlink($comment['user_id']); ?> <?php echo Filters::noXSS(L('commentedon')); ?> <?php echo Filters::noXSS(formatDate($comment['date_added'], true)); ?></div>
   27 			</div>
   28 			<div class="commenttext">
   29 				<?php echo tpl_form(CreateUrl('details', $comment['task_id'], 'multipart/form-data')); ?>
   30 				<input type="hidden" name="action" value="editcomment" />
   31 				<input type="hidden" name="task_id" value="<?php echo Filters::noXSS($comment['task_id']); ?>" />
   32 				<input type="hidden" name="comment_id" value="<?php echo Filters::noXSS($comment['comment_id']); ?>" />
   33 				<input type="hidden" name="previous_text" value="<?php echo Filters::noXSS($comment['comment_text']); ?>" />
   34 				<?php if (defined('FLYSPRAY_HAS_PREVIEW')): ?>
   35 					<div class="hide preview" id="preview"></div>
   36 					<button tabindex="9" type="button" onclick="showPreview('comment_text', '<?php echo Filters::noJsXSS($baseurl); ?>', 'preview')"><?php echo Filters::noXSS(L('preview')); ?></button>
   37 				<?php endif; ?>
   38 				<?php echo TextFormatter::textarea('comment_text', 10, 72, array('id' => 'comment_text'), $comment['comment_text']); ?>
   39 				<div id="addlinkbox">
   40 					<?php $links = $proj->listLinks($comment['comment_id'], $comment['task_id']);
   41 					$this->display('common.editlinks.tpl', 'links', $links); ?>
   42 					<?php if ($user->perms('create_attachments')): ?>
   43 						<button id="addlinkbox_addalink" tabindex="10" type="button" onclick="addLinkField('addlinkbox')">
   44 						<?php echo Filters::noXSS(L('addalink')); ?>
   45 						</button>
   46 						<button id="addlinkbox_addanotherlink" tabindex="10" style="display: none" type="button" onclick="addLinkField('addlinkbox')">
   47 						<?php echo Filters::noXSS(L('addanotherlink')); ?>
   48 						</button>
   49 						<span style="display: none">
   50 						<input tabindex="8" class="text" type="text" size="28" maxlength="100" name="userlink[]" />
   51 						<a href="javascript://" tabindex="9" onclick="removeLinkField(this, 'addlinkbox');"><?php echo Filters::noXSS(L('remove')); ?></a><br />
   52 						</span>
   53 						<noscript>
   54 						<input tabindex="8" class="text" type="text" size="28" maxlength="100" name="userlink[]" />
   55 						</noscript>
   56 					<?php endif; ?>
   57 				</div>
   58 				<div id="uploadfilebox">
   59 					<?php $attachments = $proj->listAttachments($comment['comment_id'], $comment['task_id']);
   60 					$this->display('common.editattachments.tpl', 'attachments', $attachments); ?>
   61 					<?php if ($user->perms('create_attachments')): ?>
   62 						<button id="uploadfilebox_attachafile" tabindex="7" type="button" onclick="addUploadFields()">
   63 							<?php echo Filters::noXSS(L('uploadafile')); ?> (<?php echo Filters::noXSS(L('max')); ?> <?php echo Filters::noXSS($fs->max_file_size); ?> <?php echo Filters::noXSS(L('MiB')); ?>)
   64 						</button>
   65 						<button id="uploadfilebox_attachanotherfile" tabindex="7" style="display: none" type="button" onclick="addUploadFields()">
   66 							<?php echo Filters::noXSS(L('attachanotherfile')); ?> (<?php echo Filters::noXSS(L('max')); ?> <?php echo Filters::noXSS($fs->max_file_size); ?> <?php echo Filters::noXSS(L('MiB')); ?>)
   67 						</button>
   68 						<span style="display: none;"><!-- this span is shown/copied in javascript when adding files -->
   69 							<input tabindex="5" class="file" type="file" size="55" name="userfile[]" />
   70 							<a href="javascript://" tabindex="6" onclick="removeUploadField(this);"><?php echo Filters::noXSS(L('remove')); ?></a><br />
   71 						</span>
   72 						<noscript>
   73 							<input tabindex="5" class="file" type="file" size="55" name="userfile[]" />
   74 						</noscript>
   75 					<?php endif; ?>
   76 					</div>
   77 				<button accesskey="s" tabindex="9" type="submit" class="positive"><?php echo Filters::noXSS(L('saveeditedcomment')); ?></button>
   78 				<a class="button" href="<?php echo Filters::noXSS(CreateUrl('details', $comment['task_id'])); ?>"><?php echo Filters::noXSS(L('canceledit')); ?></a>
   79 				</form>
   80 			</div>
   81 		</div>
   82 	</div>
   83 </div>