Skip to content

Commit

Permalink
Import dexlib in templates that are about to need it
Browse files Browse the repository at this point in the history
A bunch of helper functions are moving to dexlib, so there are a lot of
templates that are going to need to import dexlib now.

Updates #117.
  • Loading branch information
magical committed Jul 19, 2019
1 parent 875b79e commit 089a9f7
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions splinext/pokedex/templates/pokedex/ability_list.mako
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<%inherit file="/base.mako"/>
<%namespace name="dexlib" file="lib.mako" />
<%! from splinext.pokedex import i18n %>\
<%def name="title()">Abilities</%def>
Expand Down
1 change: 1 addition & 0 deletions splinext/pokedex/templates/pokedex/conquest/kingdom.mako
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<%inherit file="/base.mako"/>
<%namespace name="dexlib" file="/pokedex/lib.mako" />

<%! from splinext.pokedex import i18n %>
<%def name="title()">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<%inherit file="/base.mako"/>
<%namespace name="dexlib" file="/pokedex/lib.mako" />

<%! from splinext.pokedex import i18n %>\
Expand Down
1 change: 1 addition & 0 deletions splinext/pokedex/templates/pokedex/conquest/lib.mako
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<%namespace name="dexlib" file="/pokedex/lib.mako" />
<%! from splinext.pokedex import i18n %>
<%def name="pokemon_page_header()">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<%inherit file="/base.mako" />
<%namespace name="dexlib" file="/pokedex/lib.mako" />
<%! from splinext.pokedex import i18n %>\
<%def name="title()">${_(u"Compare Pokémon")}</%def>
Expand Down
2 changes: 1 addition & 1 deletion splinext/pokedex/templates/pokedex/location.mako
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%inherit file="/base.mako"/>
<%namespace name="lib" file="lib.mako"/>
<%namespace name="dexlib" file="lib.mako"/>
<%! from splinext.pokedex import i18n %>\
<%def name="title()">${_("%s - Locations") % c.location_name}</%def>
Expand Down
1 change: 1 addition & 0 deletions splinext/pokedex/templates/pokedex/lookup_results.mako
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<%inherit file="/base.mako"/>
<%namespace name="dexlib" file="lib.mako"/>
<%! from splinext.pokedex import i18n %>\
<%def name="title()">${_("Disambiguation")}</%def>
Expand Down
2 changes: 1 addition & 1 deletion splinext/pokedex/templates/pokedex/move_list.mako
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%inherit file="/base.mako"/>
<%namespace name="lib" file="/lib.mako"/>
<%namespace name="dexlib" file="lib.mako"/>
<%! from splinext.pokedex import i18n %>\
<%def name="title()">${_("Moves")}</%def>
Expand Down
1 change: 1 addition & 0 deletions splinext/pokedex/templates/pokedex/nature_list.mako
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<%inherit file="/base.mako"/>
<%namespace name="lib" file="/lib.mako"/>
<%namespace name="dexlib" file="lib.mako" />
<%! from splinext.pokedex import i18n %>\
<%def name="title()">${_("Natures")}</%def>
Expand Down
1 change: 1 addition & 0 deletions splinext/pokedex/templates/pokedex/pokemon_list.mako
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<%inherit file="/base.mako"/>
<%namespace name="lib" file="/lib.mako"/>
<%namespace name="dexlib" file="lib.mako"/>
<%! from splinext.pokedex import i18n %>\
<%def name="title()">${_(u"Pokémon")}</%def>
Expand Down
2 changes: 1 addition & 1 deletion splinext/pokedex/templates/pokedex/type_list.mako
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%inherit file="/base.mako"/>
<%namespace name="lib" file="/lib.mako"/>
<%namespace name="dexlib" file="lib.mako"/>
<%! from splinext.pokedex import i18n %>\
<%def name="title()">${_(u"Types")}</%def>
Expand Down

0 comments on commit 089a9f7

Please sign in to comment.