Changeset 80

Show
Ignore:
Timestamp:
02/24/06 15:36:55 (3 years ago)
Author:
fabien
Message:

fixed navigation bugs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/apps/frontend/modules/answer/templates/recentSuccess.php

    r64 r80  
    1212</div> 
    1313 
    14 <?php if ($answer_pager->haveToPaginate()): ?> 
    15   <div id="answers_pager"> 
    16  
    17   <?php echo link_to('&laquo;', '@recent_answers?page=1') ?> 
    18   <?php echo link_to('&lt;', '@recent_answers?page='.$answer_pager->getPreviousPage()) ?> 
    19  
    20   <?php foreach ($answer_pager->getLinks() as $page): ?> 
    21     <?php echo ($page == $answer_pager->getPage()) ? $page : link_to($page, '@recent_answers?page='.$page) ?> 
    22     <?php echo ($page != $answer_pager->getCurrentMaxLink()) ? '-' : '' ?> 
    23   <?php endforeach ?> 
    24  
    25   <?php echo link_to('&gt;', '@recent_answers?page='.$answer_pager->getNextPage()) ?> 
    26   <?php echo link_to('&raquo;', '@recent_answers?page='.$answer_pager->getLastPage()) ?> 
    27  
    28   </div> 
    29 <?php endif ?> 
     14<div id="answers_pager"> 
     15  <?php echo pager_navigation($answer_pager, '@recent_answers') ?> 
     16</div> 
  • trunk/apps/frontend/modules/question/templates/listSuccess.php

    r64 r80  
    11<h1><?php echo __('popular questions') ?></h1> 
    22 
    3 <?php echo include_partial('question_list', array('question_pager' => $question_pager)) ?> 
     3<?php echo include_partial('question_list', array('question_pager' => $question_pager, 'rule' => '@popular_questions')) ?> 
  • trunk/apps/frontend/modules/question/templates/recentSuccess.php

    r64 r80  
    11<h1><?php echo __('recent questions') ?></h1> 
    22 
    3 <?php echo include_partial('question_list', array('question_pager' => $question_pager)) ?> 
     3<?php echo include_partial('question_list', array('question_pager' => $question_pager, 'rule' => '@recent_questions')) ?> 
  • trunk/config/rsync_exclude.txt

    r40 r80  
    44cache 
    55log 
    6 frontend/config/orm.yml 
     6apps/frontend/config/databases.yml 
    77web/frontend_dev.php 
     8lib/symfony 
     9data/symfony