Changeset 10
- Timestamp:
- 06/16/06 17:50:00 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/apps/snippets/modules/sidebar/templates/_listAll.php
r7 r10 18 18 <?php foreach($comments as $comment): ?> 19 19 <li> 20 on <?php echo link_to($comment->getSnippetSnippet()->getTitle(), 'snippet/show?id='.$comment->getSnippetId() ) ?> by <?php echo $comment->getSnippetUser() ?> (<?php echo format_date($comment->getCreatedAt()) ?>)20 on <?php echo link_to($comment->getSnippetSnippet()->getTitle(), 'snippet/show?id='.$comment->getSnippetId().'#comments') ?> by <?php echo $comment->getSnippetUser() ?> (<?php echo format_date($comment->getCreatedAt()) ?>) 21 21 </li> 22 22 <?php endforeach; ?> trunk/apps/snippets/modules/snippet/templates/_snippet.php
r2 r10 32 32 <?php endif; ?> 33 33 34 <?php $nb_comments = $snippet->getNbComments(); if($nb_comments > 0 ): ?>35 <span style="white-space:nowrap"> (<?php echo $nb_comments ?> comment<?php echo $nb_comments > 1 ? 's' : '' ?>)</span>34 <?php $nb_comments = $snippet->getNbComments(); if($nb_comments > 0 && $sf_context->getActionName() != 'show'): ?> 35 <span style="white-space:nowrap"><?php echo link_to('('.$nb_comments.' comment'.($nb_comments > 1 ? 's)' : ')'), 'snippet/show?id='.$snippet->getId().'#comments') ?></span> 36 36 <?php endif; ?> 37 37 trunk/apps/snippets/modules/snippet/templates/showSuccess.php
r2 r10 27 27 Posting as <?php echo $sf_user->getUserName() ?> 28 28 <div class="field"> 29 <?php echo textarea_tag('body', '', 'rows=15 style=width: 400px') ?>29 <?php echo textarea_tag('body', '', 'rows=15 style=width:100%') ?> 30 30 </div> 31 31
