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.sessions',
'django.contrib.sites',
'django.contrib.humanize',
'django_evolution',
'registration',
'eve_proxy',

View File

@@ -1,5 +1,7 @@
{% extends "base.html" %}
{% load humanize %}
{% block title %}View Application{% endblock %}
{% block content %}
@@ -34,7 +36,7 @@
<ul>
{% for acc in eveacc %}
{% 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 %}
</ul>
@@ -42,7 +44,7 @@
<h3>Reddit Accounts</h3>
<ul>
{% 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 %}
</ul>

View File

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