Commit 208359de authored by stef's avatar stef
Browse files

[enh] full country names displayed

parent 00bdde24
......@@ -2,6 +2,7 @@ from django.template import Library, Variable
from django.conf import settings
from django import template
import random
from import COUNTRIES
register = Library()
......@@ -13,3 +14,7 @@ def root_url():
def media_url():
return settings.MEDIA_URL
def country(code):
return country_map[code]
......@@ -9,7 +9,7 @@ from django.core.exceptions import ObjectDoesNotExist
from django.contrib import messages
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
from models import Violation, Attachment, Comment, Confirmation, COUNTRIES
from models import Violation, Attachment, Comment, Confirmation
from tempfile import mkstemp
from datetime import datetime
import hashlib, os, re, json, smtplib
......@@ -131,7 +131,7 @@ $(document).ready(function(){
{% for violation in violations %}
<td><a href="/view/{{}}">{{ violation.operator }} ({{ }}) {{ violation.contract }}</a>
<td><a href="/view/{{}}">{{ violation.operator }} ({{|country }}) {{ violation.contract }}</a>
<div class="info-validate">
<form method="get" id="{{ }}" class="confirm_form" >
<label>{% trans "In order to <strong>validate your action</strong>, please enter your email address" %}</label>
......@@ -52,7 +52,7 @@
{% for violation in violations %}
<td><a class="cell-link" href="/view/{{}}">{{ }}</a></td>
<td><a class="cell-link" href="/view/{{}}">{{|country }}</a></td>
<td><a class="cell-link" href="/view/{{}}">{{ violation.operator }}</a></td>
<td><a class="cell-link" href="/view/{{}}">{{ violation.contract }}</a></td>
<td><a class="cell-link" href="/view/{{}}">{{ violation.resource }}</a></td>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment