Example #1
0
				<div class="topbar">
					<strong><?php 
echo $issue->user->firstname . ' ' . $issue->user->lastname;
?>
</strong>
					<?php 
echo __('tinyissue.opened_this_issue');
?>
  <?php 
echo date('F jS \\a\\t g:i A', strtotime($issue->created_at));
?>
				</div>

				<div class="issue">
					<?php 
echo Project\Issue\Comment::format($issue->body);
?>
				</div>

				<ul class="attachments">
					<?php 
foreach ($issue->attachments()->get() as $attachment) {
    ?>
					<li>
						<?php 
    if (in_array($attachment->fileextension, Config::get('application.image_extensions'))) {
        ?>
							<a href="<?php 
        echo URL::base() . Config::get('application.attachment_path') . $project->id . '/' . $attachment->upload_token . '/' . rawurlencode($attachment->filename);
        ?>
" title="<?php 
Example #2
0
?>
			<strong><?php 
echo $user->firstname . ' ' . $user->lastname;
?>
</strong>
			<?php 
echo __('tinyissue.commented');
?>
 <?php 
echo date('F jS \\a\\t g:i A', strtotime($comment->updated_at));
?>
		</div>

		<div class="issue">
			<?php 
echo Project\Issue\Comment::format($comment->comment);
?>
		</div>
		
		<?php 
if (Auth::user()->permission('issue-modify')) {
    ?>
		<div class="comment-edit">
			<textarea id="textarealicomment<?php 
    echo $comment->id;
    ?>
" class="ckeditor" name="body" style="width: 98%; height: 90px;"><?php 
    echo stripslashes($comment->comment);
    ?>
</textarea>
			<div class="right">
Example #3
0
 /**
  * Update / Edit a comment
  * /project/(:num)/issue/(:num)/edit_comment
  *
  * @request ajax
  * @return string
  */
 public function post_edit_comment()
 {
     if (Input::get('body')) {
         $comment = Project\Issue\Comment::find(str_replace('comment', '', Input::get('id')))->fill(array('comment' => Input::get('body')))->save();
         return Project\Issue\Comment::format(Input::get('body'));
     }
 }