Commits

Scott Nixon  committed f798fb7

Updated error templates.

  • Participants
  • Parent commits 2f12aab

Comments (0)

Files changed (3)

File article/templates/404.html

+{% extends "theme_base.html" %}
+
+{% block head_title %} 404 Error Page {% endblock %}
+
+{% block body  %} 
+
+		<h4>Or Checkout these Blog Posts instead</h4>
+		{% load random %}
+		{% get_random article.post 5 as random_posts %}
+			<div class="random">
+			{% for x in random_posts %}
+			<p><a href="/{{ x.post_date_create|date:"Y"}}/{{ x.post_date_create|date:"m"}}/{{ x.post_slug }}/">{{ x.post_title }}</a></p>
+			{% endfor %}
+			</div>
+
+{% endblock %}

File article/templates/500.html

+{% extends "theme_base.html" %}
+
+{% block head_title %}  500 Server Error {% endblock %}
+
+{% block body %} 
+
+		<h3>Sorry there has been an error on the Server. Our system has automatically notified of this issue and will work to resolve it.</h3> <p>If you'd like to submit feedback do so from our <a href="/about/contact/">Contact</a> form.</p>
+	
+		{% load random %}
+		{% get_random article.post 5 as random_posts %}
+			<div class="random">
+			{% for x in random_posts %}
+			<p><a href="/{{ x.post_date_create|date:"Y"}}/{{ x.post_date_create|date:"m"}}/{{ x.post_slug }}/">{{ x.post_title }}</a></p>
+			{% endfor %}
+			</div>
+
+
+
+{% endblock %}
+

File article/templates/503.html

+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
+ 
+<head profile="http://gmpg.org/xfn/11"> 
+	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
+	<meta name="description" content="Fat Free. Whole Foods. 100% Vegan Tasty!" /> 
+	<title>Happy Herbivore Maintenance</title> 
+	
+	<style type="text/css"> 
+		<!--
+		* { margin: 0; 	padding: 0; }
+		body { font-family: Georgia, Arial, Helvetica, Sans Serif; font-size: 65.5%; }
+		a { color: #08658F; }
+		a:hover { color: #0092BF; }
+		#header { color: #333; padding: 1.5em; text-align: center; font-size: 1.2em; border-bottom: 1px solid #08658F; }
+		#content { font-size: 150%; width:80%; margin:0 auto; padding: 5% 0; text-align: center; }
+		#content p { font-size: 1em; padding: .8em 0; }
+		h1, h2 { color: #08658F; }
+		h1 { font-size: 300%; padding: .5em 0; }
+		#menu { position: absolute; font-family: Arial, Helvetica, Sans Serif; bottom: 2em; width: 100%; border-top: 1px solid #08658F; }
+		#menu #pluginauthor { padding-left: .3em; }
+		#menu #admin { float: right; padding-right: .3em; }
+		-->
+	</style> 
+	
+</head> 
+ 
+<body> 
+ 
+	<div id="header"> 
+		<h2>Happy Herbivore</h2> 
+	</div> 
+	
+	<div id="content"> 
+		<h1>Happy Herbivore Maintenance</h1> 
+<p>Sorry, we are currently performing Maintenance on Happy Herbivore and we promise to be
+		back online ASAP. </p>		
+		
+	</div> 
+ 
+	<div id="menu"> 
+		<p id="admin"><a rel="nofollow" href="/admin/">Log In</a></p> 
+		 
+	</div> 
+ 
+</body> 
+</html>