Commit d162a5fe authored by Claude Paroz's avatar Claude Paroz

Remove unnecessary dateformat context variable

parent c79b80db
......@@ -24,7 +24,6 @@ import tarfile
from datetime import date, datetime
from django.shortcuts import render_to_response, get_object_or_404
from django.utils.translation import ugettext as _
from django.utils import formats
from django.template import RequestContext
from django.http import HttpResponse, HttpResponseRedirect
from django.conf import settings
......@@ -54,7 +53,6 @@ def language_all(request, locale, dtype):
'doc': _("Documentation")}.get(dtype),
'stats': stats,
'scope': dtype.endswith('-part') and 'part' or 'full',
'dateformat': formats.get_format('DATE_FORMAT'),
}
return render_to_response('languages/language_all_modules.html', context,
context_instance=RequestContext(request))
......@@ -91,7 +89,6 @@ def language_release(request, locale, release_name, dtype):
'stats': stats,
'dtype': dtype,
'scope': dtype.endswith('-part') and 'part' or 'full',
'dateformat': formats.get_format('DATE_FORMAT'),
}
return render_to_response('languages/language_release.html', context,
context_instance=RequestContext(request))
......
......@@ -31,7 +31,6 @@ from django.db import IntegrityError
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from django.utils import formats
from django.utils.translation import ugettext_lazy, ugettext as _
from django.views.generic import ListView, DetailView, UpdateView
......@@ -64,7 +63,6 @@ class PersonDetailView(DetailView):
'all_languages': all_languages,
'on_own_page': self.request.user.is_authenticated() and self.object.username == self.request.user.username,
'states': states,
'dateformat': formats.get_format('DATE_FORMAT'),
})
return context
......
......@@ -73,7 +73,7 @@
{% if stat.state.name %}
{% if stat.state.name != "None" %}
<em><small>{{ stat.state.get_state }}</small></em></td>
<td><span style="display: none;">{{ stat.state.updated|date:"c" }}</span><em><small>{{ stat.state.updated|date:dateformat }}
<td><span style="display: none;">{{ stat.state.updated|date:"c" }}</span><em><small>{{ stat.state.updated|date:"DATE_FORMAT" }}
{% else %}
{% if stat.state.last_comment %}
<span class="comment">{{ stat.state.last_comment|truncatewords:12 }}</span>
......
......@@ -56,7 +56,7 @@ $(document).ready(function()
<tbody>
{% for state in states %}
<tr>
<td><span style="display: none;">{{ state.updated|date:"c" }}</span>{{ state.updated|naturalday:dateformat }}</td>
<td><span style="display: none;">{{ state.updated|date:"c" }}</span>{{ state.updated|naturalday:"DATE_FORMAT" }}</td>
<td><a href="{{ state.get_absolute_url }}">{{ state.branch.module.get_description }} - {{ state.branch.name }} - {{ state.domain.get_description }} - {{ state.language.get_name }}</a></td>
<td>{{ state.get_state }}</td>
</tr>
......
Markdown is supported
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