<?php echo link_to('back to the photo list', 'public/index',    
   'style=display:block;float:right;') ?> 
<h1>Picture details</h1> 
<?php echo link_to( 
        image_tag('/uploads/thumbnail/'.$photo->getFilePath()), 
     'public/fullSizeImage?id='.$photo->getId(), 
     'class=image title=click for the full-size version') ?>
<br/> 
<p> 
"<?php echo $photo->getDescription() ?>" 
published on <?php echo $photo->getCreatedAt() ?>
</p>

<?php use_helper('Form'); ?> 
<div id="comments"> 
 <h2>Comments</h2> 
 <?php foreach($photo->getComments() as $comment): ?> 
   <?php include_partial('comment', array('comment' => $comment)) ?> 
 <?php endforeach; ?> 
 <div id="updateDiv"> 
     <h2>Add a comment</h2>
   <?php echo form_tag('public/addComment') ?> 
     <?php echo input_hidden_tag('photo_id', $photo->getId()) ?> 
     <?php echo label_for('author', 'Your name') ?> 
     <?php echo input_tag('author') ?><br /> 
     <?php echo label_for('body', 'Your comment') ?> 
     <?php echo textarea_tag('body') ?><br /> 
     <?php echo submit_tag('submit') ?> 
   </form> 
 </div>
</div> 