Commit 939f1e38 authored by Claude Paroz's avatar Claude Paroz

Add link on main pages about where to signal problems (bugzilla)

parent a293ff24
......@@ -35,7 +35,8 @@ def languages(request):
languages = Language.objects.select_related("team").all()
context = {
'pageSection': "languages",
'languages': utils.trans_sort_object_list(languages, 'name')
'languages': utils.trans_sort_object_list(languages, 'name'),
'bug_url': settings.ENTER_BUG_URL,
}
return render_to_response('languages/language_list.html', context,
context_instance=RequestContext(request))
......
......@@ -43,6 +43,7 @@ DEFAULT_FROM_EMAIL = 'gnomeweb@gnome.org'
SERVER_EMAIL = 'gnomeweb@gnome.org'
# When in STRINGFREEZE, where to send notifications (gnome-i18n@gnome.org) on any POT changes
NOTIFICATIONS_TO = ['gnome-i18n@gnome.org']
ENTER_BUG_URL = 'http://bugzilla.gnome.org/enter_bug.cgi?product=damned-lies&component=l10n.gnome.org'
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
......
......@@ -38,7 +38,8 @@ def modules(request):
all_modules = Module.objects.all()
context = {
'pageSection': "module",
'modules': utils.sort_object_list(all_modules, 'get_description')
'modules': utils.sort_object_list(all_modules, 'get_description'),
'bug_url': settings.ENTER_BUG_URL,
}
return render_to_response('module_list.html', context, context_instance=RequestContext(request))
......@@ -232,6 +233,7 @@ def releases(request, format='html'):
'pageSection' : "releases",
'active_releases': active_releases,
'old_releases' : old_releases,
'bug_url' : settings.ENTER_BUG_URL,
}
return render_to_response('release_list.html', context, context_instance=RequestContext(request))
......
......@@ -24,6 +24,7 @@ from django.http import HttpResponseRedirect, HttpResponseForbidden
from django.shortcuts import render_to_response, get_object_or_404
from django.core.urlresolvers import reverse
from django.template import RequestContext
from django.conf import settings
from common import utils
from teams.models import Team, FakeTeam, Role
from teams.forms import EditMemberRoleForm, EditTeamDetailsForm
......@@ -42,7 +43,8 @@ def teams(request):
else:
context = {
'pageSection': 'teams',
'teams': utils.trans_sort_object_list(teams, 'description')
'teams': utils.trans_sort_object_list(teams, 'description'),
'bug_url': settings.ENTER_BUG_URL,
}
return render_to_response('teams/team_list.html', context,
context_instance=RequestContext(request))
......
......@@ -31,5 +31,9 @@
{% endfor %}
</div>
<p class="comment" style="clear:both">
{% blocktrans %}If anything should be changed on this page, please <a href="{{ bug_url }}">submit a bug report</a>.{% endblocktrans %}
</p>
</div>
{% endblock %}
......@@ -24,5 +24,9 @@
{% endfor %}
</div>
<p class="comment" style="clear:both">
{% blocktrans %}If anything should be changed on this page, please <a href="{{ bug_url }}">submit a bug report</a>.{% endblocktrans %}
</p>
</div>
{% endblock %}
......@@ -34,5 +34,8 @@
</li>
{% endfor %}
</ul>
<p class="comment">{% blocktrans %}If anything should be changed on this page, please <a href="{{ bug_url }}">submit a bug report</a>.{% endblocktrans %}</p>
</div>
{% endblock %}
......@@ -30,6 +30,8 @@
{% endfor %}
</ul>
<p class="comment">{% blocktrans %}If anything should be changed on this page, please <a href="{{ bug_url }}">submit a bug report</a>.{% endblocktrans %}</p>
{% else %}
<p>{% trans "There are currently no translation teams in GNOME. :(" %}</p>
{% endif %}
......
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