[damned-lies] Add link on main pages about where to signal problems (bugzilla)



commit 939f1e389c034e66eef90ceb964ddfe49d9b90c8
Author: Claude Paroz <claude 2xlibre net>
Date:   Fri Apr 30 15:03:06 2010 +0200

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

 languages/views.py                     |    3 ++-
 settings_sample.py                     |    1 +
 stats/views.py                         |    4 +++-
 teams/views.py                         |    4 +++-
 templates/languages/language_list.html |    4 ++++
 templates/module_list.html             |    4 ++++
 templates/release_list.html            |    3 +++
 templates/teams/team_list.html         |    2 ++
 8 files changed, 22 insertions(+), 3 deletions(-)
---
diff --git a/languages/views.py b/languages/views.py
index dd84db7..adda0a8 100644
--- a/languages/views.py
+++ b/languages/views.py
@@ -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))
diff --git a/settings_sample.py b/settings_sample.py
index 5e59fd3..313b6f2 100644
--- a/settings_sample.py
+++ b/settings_sample.py
@@ -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
diff --git a/stats/views.py b/stats/views.py
index d3b800f..4427c8f 100644
--- a/stats/views.py
+++ b/stats/views.py
@@ -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))
 
diff --git a/teams/views.py b/teams/views.py
index 2844397..8c173ff 100644
--- a/teams/views.py
+++ b/teams/views.py
@@ -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))
diff --git a/templates/languages/language_list.html b/templates/languages/language_list.html
index 6cc6153..6b09fd6 100644
--- a/templates/languages/language_list.html
+++ b/templates/languages/language_list.html
@@ -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 %}
diff --git a/templates/module_list.html b/templates/module_list.html
index 2df78d7..73465c5 100644
--- a/templates/module_list.html
+++ b/templates/module_list.html
@@ -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 %}
diff --git a/templates/release_list.html b/templates/release_list.html
index 857658d..3b309d5 100644
--- a/templates/release_list.html
+++ b/templates/release_list.html
@@ -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 %}
diff --git a/templates/teams/team_list.html b/templates/teams/team_list.html
index 7c11469..b974b81 100644
--- a/templates/teams/team_list.html
+++ b/templates/teams/team_list.html
@@ -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 %}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]