diff pylons_app/templates/errors/error_404.html @ 215:70f645fa97cc

Moved repo creation to admin/repos, as part of crud controller. Now repo creation is based on a form, which can be auto filled with data from 404 page. Fixed the error controller to properly give the repo name.
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 24 May 2010 22:18:15 +0200
parents 410101210923
children 237470e64bb8
line wrap: on
line diff
--- a/pylons_app/templates/errors/error_404.html	Mon May 24 22:16:10 2010 +0200
+++ b/pylons_app/templates/errors/error_404.html	Mon May 24 22:18:15 2010 +0200
@@ -22,13 +22,14 @@
 </%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>
+    <h2 class="no-link no-border">${_('Not Found')}</h2>
+    <p class="normal">${_('The specified repository "%s" is unknown, sorry.') % c.repo_name}</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>
+    <a href="${h.url('new_repo',repo=c.repo_name_cleaned)}">
+    ${_('Create "%s" repository as %s' % (c.repo_name,c.repo_name_cleaned))}</a>
 
     </p>
-    <p class="normal">Go back to the ${h.link_to(_('main repository list page'),h.url('hg_home'))}.</p>
+    <p class="normal">${h.link_to(_('Go back to the main repository list page'),h.url('hg_home'))}</p>
     <div class="page-footer">
     </div>
 </%def>
\ No newline at end of file