diff MoinMoin/apps/admin/views.py @ 1520:a9f837dee2d7

More splitted to Admin and User
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Thu, 05 Jul 2012 14:50:22 +0530
parents cdd3bb2a2d51
children d7ccb653e7aa
line wrap: on
line diff
--- a/MoinMoin/apps/admin/views.py	Wed Jul 04 13:31:41 2012 +0530
+++ b/MoinMoin/apps/admin/views.py	Thu Jul 05 14:50:22 2012 +0530
@@ -25,9 +25,13 @@
 from MoinMoin.config import SUPERUSER
 from MoinMoin.security import require_permission
 
-@admin.route('/')
+@admin.route('/superuser')
 def index():
-    return render_template('admin/index.html', title_name=_(u"More"))
+    return render_template('admin/index.html', title_name=_(u"Admin"))
+
+@admin.route('/user')    
+def index_user():
+    return render_template('user/index_user.html', title_name=_(u"User"))
 
 
 @admin.route('/userbrowser')
@@ -201,7 +205,7 @@
     lexers = pygments.lexers.get_all_lexers()
     rows = sorted([[desc, ' '.join(names), ' '.join(patterns), ' '.join(mimetypes), ]
                    for desc, names, patterns, mimetypes in lexers])
-    return render_template('admin/highlighterhelp.html',
+    return render_template('user/highlighterhelp.html',
                            title_name=_(u"Highlighter Help"),
                            headings=headings,
                            rows=rows)
@@ -214,7 +218,7 @@
                 _('URL'),
                ]
     rows = sorted(app.cfg.interwiki_map.items())
-    return render_template('admin/interwikihelp.html',
+    return render_template('user/interwikihelp.html',
                            title_name=_(u"Interwiki Help"),
                            headings=headings,
                            rows=rows)
@@ -229,7 +233,7 @@
     rows = [(rev.meta[SIZE], rev.meta[NAME])
             for rev in flaskg.storage.documents(wikiname=app.cfg.interwikiname)]
     rows = sorted(rows, reverse=True)
-    return render_template('admin/itemsize.html',
+    return render_template('user/itemsize.html',
                            title_name=_(u"Item Size"),
                            headings=headings,
                            rows=rows)