Skip to content

Commit

Permalink
Add header copy
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwt committed Nov 19, 2014
1 parent c69d099 commit c277897
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion kartographer/comparison/templates/comparison/add.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div id="content-header" class="row">
<div class="col-xs-12 col-sm-8">
<h4>Select a component from each section to build your kart loadout.</h4>
<p><small>Selected components will appear highlighted in <span class="selected"><b>red</b></span>, while components with identical stats will appear highlighted in <span class="similar"><b>blue</b></span> for your convenience.</small></p>
<p><small>Click on a component's icon to select it. Selected components will appear highlighted in <span class="selected"><b>red</b></span>, while components with identical stats will appear highlighted in <span class="similar"><b>blue</b></span> for your convenience.</small></p>
</div>
<div class="hidden-xs col-sm-4 text-center">
<img src="{% static 'images/mk8/mechanic.png' %}" alt="Mechanic">
Expand Down
5 changes: 2 additions & 3 deletions kartographer/comparison/templates/comparison/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@
{% block content-header %}
<div id="content-header" class="row">
<div class="col-xs-12 col-sm-8">
<h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h4>
<p><small>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.</small></p>
<h4>View the (hidden) stats of every single component in Mario Kart 8.</h4>
<p><small>Need to find a wheel with the highest speed or wondering which kart has the best acceleration? Use this sortable table to view all of the components' stats at a quick glance. Individual columns can be toggled using the View dropdown on the right.</small></p>
</div>
<div class="hidden-xs col-sm-4 text-center">
<img src="{% static 'images/mk8/pit-toad.png' %}" alt="Pit Toad">
Expand Down
5 changes: 2 additions & 3 deletions kartographer/comparison/templates/comparison/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
{% block content-header %}
<div id="content-header" class="row">
<div class="col-xs-12 col-sm-8">
<h4>Build a virtual garage of karts to compare different stat loadouts!</h4>
<p><small>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.</small></p>
<h4>Add one or more Mario Kart 8 loadouts to compare stats.</h4>
<p><small>No more scrolling back and forth between kart components using in-game menus! Now you can plan the best possible loadout for your driving style by comparing any of the {{ total_combinations }} possible kart loadouts in a user-friendly layout.</small></p>
</div>
<div class="hidden-xs col-sm-4 text-center">
<img src="{% static 'images/mk8/koopalings.png' %}" alt="Hold on to your hats.">
Expand Down
8 changes: 4 additions & 4 deletions kartographer/comparison/templates/comparison/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% block head_extra %}{% endblock %}
{% endblock %}

{% block panel_title %}Saved Configuration List{% endblock %}
{% block panel_title %}Kart List{% endblock %}

{% block panel_alt_title %}
<div class="dropdown pull-right">
Expand Down Expand Up @@ -34,9 +34,9 @@
{% block content-header %}
<div id="content-header" class="row">
<div class="col-xs-12 col-sm-8">
<h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h4>
<p><small>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.</small></p>
<h4>You're viewing a saved list of kart loadouts.</h4>
<p><small>Someone thought these karts were worth sharing with you. Who knows, maybe it contains your next favorite Mario Kart 8 loadout, but there's only one way to find out, and it may just involve a red shell with your name on it.</small></p>
<p><small>This list has been viewed a total of {{ '0' }} times since {{ 'December 1, 2014' }}.</small></p>
</div>
<div class="hidden-xs col-sm-4 text-center">
<img src="{% static 'images/mk8/koopalings.png' %}" alt="The Koopalings">
Expand Down
10 changes: 10 additions & 0 deletions kartographer/comparison/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Django views for displaying and comparing MK8 kart configurations."""

import locale
import logging
import random

Expand Down Expand Up @@ -47,13 +48,22 @@ def home(request):

log('Displaying My List page', request)

total_combinations = Character.objects.count() * \
Kart.objects.count() * \
Wheel.objects.count() * \
Glider.objects.count()

locale.setlocale(locale.LC_ALL, 'en_US')
total_combinations = locale.format("%d", total_combinations, grouping=True)

context = {
'characterstats': CharacterStats.objects.all(),
'characters': Character.objects.select_related().all(),
'karts': Kart.objects.all(),
'wheels': Wheel.objects.all(),
'gliders': Glider.objects.all(),
'configurations': configurations,
'total_combinations': total_combinations,
'total_list_count': len(ConfigList.objects.all()),
'total_config_count': len(ConfigListItem.objects.all()),
'quote': fetch_random_quote(),
Expand Down

0 comments on commit c277897

Please sign in to comment.