Changeset 409

Show
Ignore:
Timestamp:
02/09/08 03:20:52 (10 months ago)
Author:
eevee
Message:

Fixed counting of move learners across all versions, and changed blanks to zeroes for versions where the move is unlearnable. (#237)

Location:
veekun/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/lib/Vee/Controller/Dex.pm

    r406 r409  
    849849                    $learners{$method}{$version}++; 
    850850                } 
     851                $learners{$method}{all}++; 
    851852            } 
    852853        } else { 
  • veekun/trunk/templates/dex/page/move.tt

    r406 r409  
    237237[%         FOR version IN our_versions %] 
    238238[%             specific_version = versions_map.exists(version) ? versions_map.$version : version %] 
    239     <li> <a href="[% c.uri_for('pokemon/search', { move => this.name, move_method => method, move_version => specific_version }) %]">[% Icons.$version +%] [%+ list.$specific_version %]</a> </li> 
    240 [%         END %] 
    241     <li> <a href="[% c.uri_for('pokemon/search', { move => this.name, move_method => method }) %]">Total: [% list.$specific_version %]</a> </li> 
     239    <li> <a href="[% c.uri_for('pokemon/search', { move => this.name, move_method => method, move_version => specific_version }) %]">[% Icons.$version +%] [%+ list.$specific_version || 0 %]</a> </li> 
     240[%         END %] 
     241    <li> <a href="[% c.uri_for('pokemon/search', { move => this.name, move_method => method }) %]">Total: [% list.all %]</a> </li> 
    242242</ul> 
    243243[%         NEXT %]