1 <%inherit file="/base.mako" />
3 <%def name="title()">Stored Pokémon</%def>
5 % for savefile in c.savefiles:
6 <div class="gts-pokemon">
7 % if savefile.structure.ivs.is_egg:
8 ${h.pokedex.pokedex_img("heartgold-soulsilver/egg.png", class_='icon')}
10 ${h.pokedex.pokedex_img("heartgold-soulsilver/{0}{1}.png".format(
11 'shiny/' if savefile.is_shiny else '',
12 savefile.structure.national_id),
17 % if savefile.structure.ivs.is_nicknamed:
18 “${savefile.structure.nickname}”
21 ${savefile.structure.nickname}
23 <span class="gender ${savefile.structure.gender}">
24 % if savefile.structure.gender == 'male':
26 % elif savefile.structure.gender == 'female':
32 % if savefile.structure.alternate_form:
33 ~ ${savefile.structure.alternate_form}
36 <div class="personality">
37 ${savefile.structure.personality}<br>
38 ${u"0x{0:08x}".format(savefile.structure.personality)}
44 ${savefile.structure.original_trainer_name}
45 ${u'♂' if savefile.structure.original_trainer_gender == 'male' else u'♀'}
46 <img src="${h.static_uri('spline', "flags/{0}.png".format(savefile.structure.original_country))}" alt="${savefile.structure.original_country}">,
47 ID ${savefile.structure.original_trainer_id}
48 <span class="secret-id">/ ${savefile.structure.original_trainer_secret_id}</span>
51 % if savefile.structure.date_egg_received == savefile.structure.date_met:
52 Born and hatched on ${savefile.structure.date_egg_received}
53 % elif savefile.structure.date_egg_received:
54 Born on ${savefile.structure.date_egg_received};
55 hatched on ${savefile.structure.date_met})
57 [${savefile.structure.dppt_pokeball} ${savefile.structure.hgss_pokeball}]
58 Caught on ${savefile.structure.date_met}
59 at level ${savefile.structure.met_at_level}
62 at place number ${savefile.structure.dp_met_location_id}
63 or maybe ${savefile.structure.dp_egg_location_id}
64 orrrr ${savefile.structure.pt_met_location_id}
65 or???? ${savefile.structure.pt_egg_location_id}
66 ${h.pokedex.pokedex_img("versions/{0}.png".format(savefile.structure.original_version))}
68 ps was a ${savefile.structure.encounter_type}
69 % if savefile.structure.fateful_encounter:
77 <dd>${savefile.structure.exp}</dd>
79 <dd>${savefile.structure.happiness}</dd>
81 <dd>${savefile.structure.held_item_id}</dd>
83 <dd>${savefile.structure.ability_id}</dd>
85 <dd>${savefile.structure.pokerus}</dd>
88 <ul class="gts-pokemon-markings">
89 % if savefile.structure.markings.heart:
94 % if savefile.structure.markings.diamond:
99 % if savefile.structure.markings.triangle:
104 % if savefile.structure.markings.square:
109 % if savefile.structure.markings.star:
114 % if savefile.structure.markings.circle:
121 <dt>Shiny leaves</dt>
123 % if savefile.structure.shining_leaves.crown:
124 ${h.pokedex.pokedex_img('chrome/leaf-crown.png', alt='Leaf Crown', title='Leaf Crown')}
126 <ul class="gts-pokemon-leaves">
127 % for leaf_n in range(1, 6):
129 % if savefile.structure.shining_leaves['leaf' + str(leaf_n)]:
130 ${h.pokedex.pokedex_img('chrome/shiny-leaf.png', alt='Shiny Leaf', title='Shiny Leaf')}
139 <ul class="gts-pokemon-ribbons">
140 % for region, ribbon_container in ('hoenn', savefile.structure.hoenn_ribbons), \
141 ('sinnoh', savefile.structure.sinnoh_ribbons), \
142 ('sinnoh', savefile.structure.sinnoh_contest_ribbons):
143 % for ribbon in reversed(ribbon_container.__attrs__):
144 % if ribbon_container[ribbon]:
145 <li>${h.pokedex.pokedex_img("ribbons/{0}/{1}.png".format(region, ribbon.replace(u'_', u'-')), alt=ribbon.replace(u'_', u' ').title(), title=ribbon.replace(u'_', u' ').title())}</li>
153 <div class="dex-column-container gts-pokemon-columns">
154 <div class="dex-column">
157 <tr class="header-row">
166 <td>${savefile.structure.ivs.iv_hp}</td>
167 <td>${savefile.structure.effort_hp}</td>
171 <td>${savefile.structure.ivs.iv_attack}</td>
172 <td>${savefile.structure.effort_attack}</td>
176 <td>${savefile.structure.ivs.iv_defense}</td>
177 <td>${savefile.structure.effort_defense}</td>
180 <th>Special Attack</th>
181 <td>${savefile.structure.ivs.iv_special_attack}</td>
182 <td>${savefile.structure.effort_special_attack}</td>
185 <th>Special Defense</th>
186 <td>${savefile.structure.ivs.iv_special_defense}</td>
187 <td>${savefile.structure.effort_special_defense}</td>
191 <td>${savefile.structure.ivs.iv_speed}</td>
192 <td>${savefile.structure.effort_speed}</td>
197 <div class="dex-column">
200 <tr class="header-row">
207 % for i in range(1, 5):
209 <td>${savefile.structure['move' + str(i) + '_id']}</td>
210 <td>${savefile.structure['move' + str(i) + '_pp']}</td>
211 <td>${savefile.structure['move' + str(i) + '_pp_ups']}</td>
217 <div class="dex-column">
220 <tr class="header-row">
226 % for contest_stat in ('beauty', 'cool', 'cute', 'smart', 'tough'):
228 <th>${contest_stat}</th>
229 <td>${savefile.structure['contest_' + contest_stat]}</td>