# extends 'base.html' # import 'macro/utils.html' as utils # block header

{{config.CONFIG_DB.brand_name}}

{{config.TAGLINE}}

1. Submit two code snippets
2. Select a title for your code battle
3. Let our community vote!

Start a Fight
# endblock # block content

Top Fights!

# for post_db in top_post_dbs
# set user_db = post_db.user_key.get()
{{post_db.votes}}
by {{user_db.name}}
{{post_db.votes_a}}
{{post_db.votes_b}}
# endfor

Latest Fights

# for post_db in post_dbs # endfor
{{utils.order_by_link('votes', 'Votes', hash='latest', inverse=True)}} {{utils.order_by_link('title', 'Title', hash='latest')}} {{utils.order_by_link('language_key', 'Language', hash='latest')}} Variant A Variant B {{utils.order_by_link('created', 'Created', hash='latest')}}
{{utils.next_link(next_url)}}
# endblock