Changeset 368
- Timestamp:
- 11/03/07 21:08:29 (2 years ago)
- Location:
- veekun/trunk
- Files:
-
- 3 modified
-
lib/Vee/Controller/Dex/Utils.pm (modified) (1 diff)
-
templates/dex/utils/compare-results.tt (modified) (3 diffs)
-
templates/style/dex.tt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/lib/Vee/Controller/Dex/Utils.pm
r339 r368 85 85 if (@fuzzies) { 86 86 $pokemon_ids[$p] = ( shift @fuzzies )->{id}; 87 $pokemon_notes[$p] = [ @fuzzies[0 .. 3] ] if @fuzzies; 87 @fuzzies = @fuzzies[0 .. 3] if @fuzzies > 4; 88 $pokemon_notes[$p] = \@fuzzies; 88 89 } else { 89 90 $pokemon_notes[$p] = "No match found."; -
veekun/trunk/templates/dex/utils/compare-results.tt
r345 r368 44 44 <table class="dex-table dex-comparison" cellspacing="0"> 45 45 <thead> 46 [% IF pokemon_notes %]47 <tr >46 [% IF pokemon_notes.size %] 47 <tr class="suggestions"> 48 48 <th rowspan="2"> [% Icons.$version %] </th> 49 49 [% tmp = MAX_POKEMON - 1 %] 50 50 [% FOREACH i IN [ 0 .. tmp ] %] 51 <td class="bottom">51 <td> 52 52 [% IF pokemon_notes.$i.length %] 53 53 [% pokemon_notes.$i %] 54 54 [% ELSE %] 55 55 [% FOREACH poke IN pokemon_notes.$i %] 56 <a href="?ver=[% version %][% FOREACH j IN [ 0 .. pokemon.max ]; NEXT IF !pokemon.$j; ';poke='; i == j ? PokemonNames.${poke.id} : pokemon_raw.$j; END %]">[% PokemonNames.${poke.id} %] </a>56 <a href="?ver=[% version %][% FOREACH j IN [ 0 .. pokemon.max ]; NEXT IF !pokemon.$j; ';poke='; i == j ? PokemonNames.${poke.id} : pokemon_raw.$j; END %]">[% PokemonNames.${poke.id} %]?</a> 57 57 [% '<br/>' UNLESS loop.last %] 58 58 [% END %] … … 64 64 65 65 <tr> 66 [% UNLESS pokemon_notes %]66 [% UNLESS pokemon_notes.size %] 67 67 <th> [% Icons.$version %] </th> 68 68 [% END %] … … 72 72 <a href="?ver=[% version %][% FOREACH j IN [ 0 .. pokemon.max ]; NEXT IF !pokemon.$j OR p == pokemon.$j; ';poke='; pokemon_raw.$j; END %]"><small>(remove)</small></a><br/> 73 73 [% END %] 74 <a href="[% dex_uri('pokemon', p.name) %]" class="blocklink" style="display: block; width: 80px; margin: 0 auto; /* hack */"><img src="/dex-images/dp/[% p.id.pad(3) %].png" alt=""/></a>74 <a href="[% dex_uri('pokemon', p.name) %]" class="blocklink" style="display: block; width: 80px; margin: 0 auto; /* full bg hack */"><img src="/dex-images/dp/[% p.id.pad(3) %].png" alt=""/><br/><strong>[% p.name %]</strong></a> 75 75 </th> 76 76 [% END %] -
veekun/trunk/templates/style/dex.tt
r361 r368 135 135 table.dex-comparison tbody th { font-weight: normal; font-style: italic; width: 4%; } 136 136 table.dex-comparison tr.sprites td { height: 96px; vertical-align: bottom; } 137 table.dex-comparison tr.suggestions td { vertical-align: bottom; border-bottom: 1px dashed [% header_border %]; } 137 138 table.dex-comparison tr.moves td { width: 11.5%; } 138 139 table.dex-comparison tr.moves th { width: 8%; }
