To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Show
Ignore:
Timestamp:
04/28/10 17:38:30 (2 years ago)
Author:
johnnyoffline
Message:

sort arrows are now the best sort arrows IN THE WORLD

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostropheBlogPlugin/trunk/data/generator/sfDoctrineModule/aBlogAdmin/template/templates/_list_th_tabular.php

    r1083 r1088  
    2828   
    2929  [?php if ('<?php echo $name ?>' == $sort[0]): ?] 
    30         [?php ($sort[1] == 'asc')? $sortLabel = __("Ascending", array(), 'a-admin'): __("Descending", array(), 'a-admin'); ?] 
     30 
     31                [?php ($sort[1] == 'asc')? $sortLabel = __("Descending", array(), 'a-admin'): $sortLabel = __("Ascending", array(), 'a-admin'); ?] 
    3132 
    3233    [?php echo link_to( 
    33       image_tag(((sfConfig::get('app_aAdmin_web_dir',false))?sfConfig::get('app_aAdmin_web_dir'):'/apostrophePlugin').'/images/'.$sort[1].'-on.png', array('alt' => __($sortLabel, array(), 'a-admin'))), 
    34       '<?php echo $this->getModuleName() ?>/index?sort=<?php echo $name ?>&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'), array('class' => 'a-sort-arrow asc', 'title' => __($sortLabel, array(), 'a-admin')) 
    35       ) ?] 
     34                        $sortLabel, 
     35                        '<?php echo $this->getModuleName() ?>/index?sort=<?php echo $name ?>&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'),  
     36                        array('class' => 'a-btn flag flag-right nobg icon a-sort-arrow sorting '.$sort[1], 'title' => __($sortLabel, array(), 'a-admin')))  
     37                ?] 
     38                 
    3639    [?php else: ?] 
     40 
    3741    [?php echo link_to( 
    38       image_tag(((sfConfig::get('app_aAdmin_web_dir',false))?sfConfig::get('app_aAdmin_web_dir'):'/apostrophePlugin').'/images/desc.png', array('alt' => __('desc', array(), 'a-admin'))), 
    39       '<?php echo $this->getModuleName() ?>/index?sort=<?php echo $name ?>&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'), array('class' => 'a-sort-arrow desc', 'title' => __('Descending', array(), 'a-admin')) 
    40       ) ?] 
     42      __("Ascending", array(), 'a-admin'), 
     43      '<?php echo $this->getModuleName() ?>/index?sort=<?php echo $name ?>&sort_type=asc',  
     44                        array('class' => 'a-btn flag flag-right nobg icon a-sort-arrow asc', 'title' => __('Ascending', array(), 'a-admin')))  
     45                ?] 
     46                 
    4147  [?php endif; ?] 
    4248