diff --git a/fowl/game/templates/base.html b/fowl/game/templates/base.html index f5109fc..7403d3a 100644 --- a/fowl/game/templates/base.html +++ b/fowl/game/templates/base.html @@ -15,6 +15,9 @@ .event-title { font-size: 125%; } .match-notes { font-size: 80%; color: #999999; } .belt-img img { display: block; margin-left: auto; margin-right: auto } + .raw { float: right; margin-right:12em; background-color: #900000;} + .divas { float: right; margin-right:11em; background-color: #900099;} + .smackdown { float: right; margin-right:8em; background-color: #003090;} diff --git a/fowl/game/templates/stables.html b/fowl/game/templates/stables.html index 2ca4eda..5bebcd1 100644 --- a/fowl/game/templates/stables.html +++ b/fowl/game/templates/stables.html @@ -9,7 +9,7 @@

Belts

-

+
{% for belt in belts %} @@ -43,40 +43,23 @@


Stables

+

- - - + {% for team in teams %} + + {% endfor %} + {% for star_set in star_sets %} - - - - - - - - - - - - - - - - - - - - - - - + {% for star in star_set %} + + {% endfor %} + {% endfor %}
GM PunkI'm AWEsomeCOBRA!{{team}}
CM PunkBrodus ClaySantino
KaneJohn CenaDolph Ziggler
R TruthChris JerichoKofi Kingston
Cody RhodesSheamusAlberto del Rio
Sin CaraDaniel BryanRandy Orton{{star}}{{star.division}}
diff --git a/fowl/game/views.py b/fowl/game/views.py index 0a8ba24..a214575 100644 --- a/fowl/game/views.py +++ b/fowl/game/views.py @@ -34,5 +34,5 @@ def stables(request): } teams = list(Team.objects.all().prefetch_related('stars')) context['teams'] = teams - context['star_sets'] = izip_longest(*(team.stars.all() for team in teams)) + context['star_sets'] = izip_longest(*(team.stars.all().order_by("division") for team in teams)) return render(request, "stables.html", context)