Changeset 231

Show
Ignore:
Timestamp:
06/11/07 23:34:29 (3 years ago)
Author:
eevee
Message:

Added prev/next to flavor pages. Minor style tweaks. (#79)

Location:
veekun/trunk/templates
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/templates/dex/page/pokemon.tt

    r216 r231  
    44 
    55[% nextid = this.real_id % Generations.-1.maxid + 1; previd = (this.real_id - 2) % Generations.-1.maxid + 1 -%] 
     6[% nav_next = dex_uri('pokemon', PokemonNames.$nextid) %] 
     7[% nav_prev = dex_uri('pokemon', PokemonNames.$previd) %] 
    68 
    79<p class="dex-navigation"> 
    810    <a href="[% dex_uri('pokemon', PokemonNames.$nextid) %]" class="next blocklink"> <img src="/dex-images/icons/[% nextid.pad(3) %].png" alt=""/> Next: #[% nextid %]<br/>[% PokemonNames.$nextid %] </a> 
    911    <a href="[% dex_uri('pokemon', PokemonNames.$previd) %]" class="prev blocklink"> <img src="/dex-images/icons/[% previd.pad(3) %].png" alt=""/> Previous: #[% previd %]<br/>[% PokemonNames.$previd %] </a> 
    10     <img src="/dex-images/icons/ani/[% image_name %].gif" alt=""/><br/>[% this.real_id %]<br/>[% this.name %]<br/><a href="[% dex_uri('pokemon', this.name) %]/flavor"><img src="/images/see-also.png" alt=""/> Flavor text and images</a> 
     12    <img src="/dex-images/icons/ani/[% image_name %].gif" alt=""/><br/>[% this.name %] 
     13</p> 
     14 
     15[%# eh, hacky %] 
     16<hr/> 
     17<p class="center"> 
     18    <strong>Main Pok&eacute;dex page</strong> |  
     19    <a href="[% dex_uri('pokemon', this.name) %]/flavor">Flavor text and images</a> 
    1120</p> 
    1221 
  • veekun/trunk/templates/dex/page/pokemon/flavor.tt

    r223 r231  
    11[% PROCESS 'dex/common.tt' %] 
    22 
    3 <p><a href="[% dex_uri('pokemon', this.name) %]"><img src="/images/see-also.png" alt=""/> Return to the main [% this.name %] page</a></p> 
     3[% nextid = this.id % Generations.-1.maxid + 1; previd = (this.id - 2) % Generations.-1.maxid + 1 -%] 
     4[% nav_next = dex_uri('pokemon', PokemonNames.$nextid) _ '/flavor' %] 
     5[% nav_prev = dex_uri('pokemon', PokemonNames.$previd) _ '/flavor' %] 
     6 
     7<p class="dex-navigation"> 
     8    <a href="[% nav_next %]" class="next blocklink"> <img src="/dex-images/icons/[% nextid.pad(3) %].png" alt=""/> Next: #[% nextid %]<br/>[% PokemonNames.$nextid %] </a> 
     9    <a href="[% nav_prev %]" class="prev blocklink"> <img src="/dex-images/icons/[% previd.pad(3) %].png" alt=""/> Previous: #[% previd %]<br/>[% PokemonNames.$previd %] </a> 
     10    <img src="/dex-images/icons/ani/[% this.id.pad(3) %].gif" alt=""/><br/>[% this.name %] 
     11</p> 
     12 
     13[%# eh, hacky %] 
     14<hr/> 
     15<p class="center"> 
     16    <a href="[% dex_uri('pokemon', this.name) %]">Main Pok&eacute;dex page</a> | 
     17    <strong>Flavor text and images</strong> 
     18</p> 
    419 
    520<!-- ####################################################################### --> 
  • veekun/trunk/templates/style/global.tt

    r227 r231  
    5353#content > h2:first-child { margin-top: -0.333em; border-top: none; } 
    5454#content > h3:first-child { margin-top: -0.417em; border-top: none; } 
    55 #content hr { border: none; border-bottom: 1px dotted [% dark_separator %]; background: url(/images/hr.png) no-repeat bottom left; height: 14px; margin: 2px 0; } 
     55#content hr { border: none; border-bottom: 1px dashed [% header_border %]; height: 0; margin: 2px 0.5em; } 
    5656#content > hr { clear: both; } 
    5757 
     
    9797#footer { -moz-border-radius-bottomright: 64px; } 
    9898 
    99 #breadcrumbs { border-bottom: 1px solid [% dark_separator %]; margin: -0.5em; margin-bottom: 0.5em; padding: 0.5em; } 
     99#breadcrumbs { margin: -0.5em; margin-bottom: 0.5em; padding: 0.5em; background: [% glass_background(tablerow_fill2) %]; } 
    100100  #breadcrumbs a { padding: 0.25em; margin: 0 -0.25em; border: 1px solid transparent; } 
    101101    #breadcrumbs a:hover { background: [% glass_background(hover_light) %]; border-color: [% hover_medium %]; }