Commits

Diego Búrigo Zacarão  committed 3fa8f1c

Fixed 500 error page to use STATIC_URL

- No longer it extends base.html. It was done to
decrease the possibilities of problems, once the
base.html uses a bunch of templatetags.

  • Participants
  • Parent commits babc22a

Comments (0)

Files changed (1)

File transifex/templates/500.html

-{% extends "base.html" %}
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
+   "http://www.w3.org/TR/html4/strict.dtd">
 {% load i18n %}
+<html lang="en">
+<head>
+  <title>Transifex | {% trans "Page unavailable" %}</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+  <link media="screen" href="{{ STATIC_URL }}css/base.css" type="text/css" rel="stylesheet" />
+  <link rel="shortcut icon" href="{{ STATIC_URL }}images/favicon.ico" type="image/x-icon" />
+</head>
+<body>
+<div id="wrapper">
+  <div id="header">
+    <div id="logo">
+        <img border="0" src="{{ STATIC_URL }}images/tx-logo.png"/>
+    </div>
+  </div>
+  <div id="content">
+    <div id="body">
+        <div id="body_main" class="errorpage">
+        <h2 class="pagetitle">{% trans "Page unavailable" %}</h2>
+        <p>{% trans "We're sorry, but the requested page is currently unavailable." %}</p>
+        <p>{% trans "We're messing around with things internally, and the server had a bit of a hiccup." %}</p>
+        <p>{% trans "Please try again later." %}</p>
+        </div>
+    </div>
+  </div>
+</div>
 
-{% block title %}{{ block.super }} | {% trans "Page unavailable" %}{% endblock %}
-
-{% block content_title %}
-  <h2 class="pagetitle">{% trans "Page unavailable" %}</h2>
-{% endblock %}
-
-{% block content %}
-
-<p>{% trans "We're sorry, but the requested page is currently unavailable." %}</p>
-
-<p>{% trans "We're messing around with things internally, and the server had a bit of a hiccup." %}</p>
-
-<p>{% trans "Please try again later." %}</p>
-
-{% endblock %}
+</body>
+</html>