add monster title

This commit is contained in:
Bryce Allen
2015-11-28 18:42:46 -06:00
parent 9e4fce3ee2
commit e5d4d8d244
2 changed files with 65 additions and 1 deletions

View File

@@ -65,6 +65,10 @@ def mk_html_list(dict_list, keys, sort_keys, divider_fn=None):
if value:
print ' <p class="ui-li-desc">%s</p>' % value
continue
elif k == "title_jp":
if value not in ("", None, "None", "N/A", "(?)"):
print ' <p class="ui-li-desc">Title: %s</p>' % value
continue
if value.endswith(".png"):
value = ('<img class="icon" src="/img/icons_items/%s" />'
% value)
@@ -178,7 +182,7 @@ def _main():
print '<div data-role="page" id="page-monsters">'
print_header_nav("page-monsters")
print '<div data-role="main" class="ui-content">'
mk_html_list(monster_list, ("name", "name_jp"), ("name",))
mk_html_list(monster_list, ("name", "name_jp", "title_jp"), ("name",))
print '</div>'
print '</div>'