diff pylons_app/controllers/admin.py @ 127:20dc7a5eb748

Html changes and cleanups, made folders for html templates, implemented tags and branches pages
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 03 May 2010 19:07:54 +0200
parents 2811259dc12d
children 919b5bcd8630
line wrap: on
line diff
--- a/pylons_app/controllers/admin.py	Mon May 03 18:31:00 2010 +0200
+++ b/pylons_app/controllers/admin.py	Mon May 03 19:07:54 2010 +0200
@@ -43,7 +43,7 @@
             except formencode.Invalid, error:
                 c.form_result = error.value
                 c.form_errors = error.error_dict or {}
-                html = render('/admin.html')
+                html = render('admin/admin.html')
 
                 return htmlfill.render(
                     html,
@@ -57,10 +57,10 @@
                 .order_by(UserLogs.action_date.desc())
             p = int(request.params.get('page', 1))
             c.users_log = Page(users_log, page=p, items_per_page=10)
-            c.log_data = render('admin_log.html')
+            c.log_data = render('admin/admin_log.html')
             if request.params.get('partial'):
                 return c.log_data
-        return render('/admin.html')
+        return render('admin/admin.html')
 
     def hgrc(self, dirname):
         filename = os.path.join(dirname, '.hg', 'hgrc')