comparison rhodecode/controllers/admin/admin.py @ 1421:c6b811f11c94 beta

Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 09 Jul 2011 20:07:59 +0200
parents 5f2fbab7c429
children bf263968da47 89efedac4e6c
comparison
equal deleted inserted replaced
1420:a2fe0ac8d007 1421:c6b811f11c94
51 .order_by(UserLog.action_date.desc()) 51 .order_by(UserLog.action_date.desc())
52 52
53 p = int(request.params.get('page', 1)) 53 p = int(request.params.get('page', 1))
54 c.users_log = Page(users_log, page=p, items_per_page=10) 54 c.users_log = Page(users_log, page=p, items_per_page=10)
55 c.log_data = render('admin/admin_log.html') 55 c.log_data = render('admin/admin_log.html')
56 if request.params.get('partial'): 56
57 if request.environ.get('HTTP_X_PARTIAL_XHR'):
57 return c.log_data 58 return c.log_data
58 return render('admin/admin.html') 59 return render('admin/admin.html')