Added humanize to difficult numbers

This commit is contained in:
2010-04-20 23:11:07 +01:00
parent 33f6fd514a
commit fa3a2d0ab1
3 changed files with 8 additions and 3 deletions

View File

@@ -73,6 +73,7 @@ INSTALLED_APPS = (
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.sites', 'django.contrib.sites',
'django.contrib.humanize',
'django_evolution', 'django_evolution',
'registration', 'registration',
'eve_proxy', 'eve_proxy',

View File

@@ -1,5 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load humanize %}
{% block title %}View Application{% endblock %} {% block title %}View Application{% endblock %}
{% block content %} {% block content %}
@@ -34,7 +36,7 @@
<ul> <ul>
{% for acc in eveacc %} {% for acc in eveacc %}
{% for char in acc.characters.all %} {% for char in acc.characters.all %}
<li><a href="/profile/characters/{{ char.id }}/">{{ char.name }}</a> - {{ char.corporation }} / {{ char.corporation.alliance }} - {{ char.balance }} ISK, {{ char.total_sp }} SP <button type="button" onclick="CCPEVE.showInfo('1377//{{ char.id }}')">Show In Eve</button></li> <li><a href="/profile/characters/{{ char.id }}/">{{ char.name }}</a> - {{ char.corporation }} / {{ char.corporation.alliance }} - {{ char.balance|intcomma }} ISK, {{ char.total_sp|intcomma }} SP <button type="button" onclick="CCPEVE.showInfo('1377//{{ char.id }}')">Show In Eve</button></li>
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}
</ul> </ul>
@@ -42,7 +44,7 @@
<h3>Reddit Accounts</h3> <h3>Reddit Accounts</h3>
<ul> <ul>
{% for acc in redditacc %} {% for acc in redditacc %}
<li><a href="http://reddit.com/user/{{ acc.username }}/">{{ acc.username }}</a>{% if acc.validated %} - Validated{ %else %} - <b>NOT VALIDATED</b>{% endif %} - {{ acc.date_created }}</li> <li><a href="http://reddit.com/user/{{ acc.username }}/">{{ acc.username }}</a>{% if acc.validated %} - Validated{%else %} - <b>NOT VALIDATED</b>{% endif %} - {{ acc.date_created }}</li>
{% endfor %} {% endfor %}
</ul> </ul>

View File

@@ -1,5 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load humanize %}
{% block content %} {% block content %}
<h1>{{ character.name }}</h1> <h1>{{ character.name }}</h1>
@@ -10,7 +12,7 @@
<li>Race: {{ character.race_description }}</li> <li>Race: {{ character.race_description }}</li>
<li>Gender: {{ character.gender_description }}</li> <li>Gender: {{ character.gender_description }}</li>
<li>Corporation: {{ character.corporation.name }}</li> <li>Corporation: {{ character.corporation.name }}</li>
<li>Total SP: {{ character.total_sp }}</li> <li>Total SP: {{ character.total_sp|intcomma }}</li>
</ul> </ul>
<table> <table>