diff pylons_app/templates/errors/error_404.html @ 87:9f6300b96380

Updated error handling, from mercurial to pylons. + added tempalte for 404
author Marcin Kuzminski <marcin@python-blog.com>
date Sun, 18 Apr 2010 21:15:53 +0200
parents
children 9936a1d359e0
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pylons_app/templates/errors/error_404.html	Sun Apr 18 21:15:53 2010 +0200
@@ -0,0 +1,35 @@
+## -*- coding: utf-8 -*-
+<%!
+from pylons_app.lib import filters
+%>
+<%inherit file="./../base/base.html"/>
+            
+<%def name="title()">
+    ${_('Repository not found')}
+</%def>
+
+<%def name="breadcrumbs()">
+	${h.link_to(u'Home',h.url('hg_home'))}
+	 / 
+	${h.link_to(u'Admin',h.url('admin_home'))}
+</%def>
+
+<%def name="page_nav()">
+<li>${h.link_to(u'Home',h.url('hg_home'))}</li>
+<li class="current">${_('Admin')}</li>
+</%def>
+<%def name="js()">
+
+</%def>
+<%def name="main()">
+
+    <h2 class="no-link no-border">Not Found</h2>
+    <p class="normal">The specified repository "${c.repo_name}" is unknown, sorry.</p>
+    <p class="normal">
+    <a href="/_admin/add_repo/${c.repo_name|n,filters.clean_repo}">Create "${c.repo_name}" repository as ${c.repo_name|n,filters.clean_repo}</a>
+
+    </p>
+    <p class="normal">Go back to the ${h.link_to(_('main repository list page'),h.url('hg_home'))}.</p>
+    <div class="page-footer">
+    </div>
+</%def>
\ No newline at end of file