Michael Hall has proposed merging 
lp:~mhall119/loco-directory/hardcode-urls-on-error into lp:loco-directory.

Requested reviews:
  loco-directory-dev (loco-directory-dev)


Template 500.html is displayed whenever we have an internal server error.  
However, often when there is an internal error, Django won't have the necessary 
context variable for media roots (css, javascript, images), nor will it be able 
to reverse-lookup the URLs for header links.  This is a stripped-down error 
message with hard-coded media roots so that we can at least display a 
well-formatted error message without causing a double-fault by doing url 
reverse lookups.
-- 
https://code.launchpad.net/~mhall119/loco-directory/hardcode-urls-on-error/+merge/35114
Your team loco-directory-dev is requested to review the proposed merge of 
lp:~mhall119/loco-directory/hardcode-urls-on-error into lp:loco-directory.
=== modified file 'loco_directory/templates/500.html'
--- loco_directory/templates/500.html	2010-08-20 13:05:47 +0000
+++ loco_directory/templates/500.html	2010-09-10 14:49:42 +0000
@@ -3,17 +3,31 @@
 
 {% block title %} {% trans "This Team Does Not Exist" %} | {% trans "Ubuntu LoCo Team Directory" %} {% endblock %}
 
+{% block defaulthead %}
+{% with '/ubuntu-website/media' as ubuntu_website_media %}
+{{ block.super }}
+{% endwith %}
+{% endblock %}
+
+{% block extrahead %}
+{% with '/media' as MEDIA_URL %}
+{{ block.super }}
+{% endwith %}
+{% endblock %}
+{% block main_nav_links %}{% endblock %}
+
 {% block sub_nav %}{% endblock %}
 
 {% block content %}
 
 <article class="main-content">
-    <h2>{% trans "The Team was not found!" %}</h2>
-    <h3><a href="{% url team-list %}">{% trans "You can browse the full list of teams" %}</a></h3>
-    <p>{% trans "Please make sure the team you are looking for is a member of" %} <a href='https://launchpad.net/~locoteams'>{% trans "The LoCo Teams group in Launchpad" %}</a>
+    <h2>{% trans "LoCo Directory has encountered an Error!" %}</h2>
+    <p>{% trans "Please try your request again." %}
     </p>
-    <p>{% trans "If you believe the reason you are here is a bug in the LoCo Team Directory please " %} <a href='https://bugs.launchpad.net/loco-directory'>{% trans "Report it!" %}</a>
+    <p>{% trans "If you continue to experience problems with LoCo Team Directory, please " %} <a href='https://bugs.launchpad.net/loco-directory'>{% trans "Report it!" %}</a>
     </p>
 </article>
 
 {% endblock %}
+
+{% block footer %}{% endblock %}

_______________________________________________
Mailing list: https://launchpad.net/~loco-directory-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~loco-directory-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to