# HG changeset patch # User Marcin Kuzminski # Date 2010-04-13 22:30:52 # Node ID 99afa4d28e2b5e7165947147ae9eaa0f77b79a34 # Parent cdf4fda66dd90655e408b27a202eb2bf9edda436 Changed order of user actions log diff --git a/pylons_app/controllers/admin.py b/pylons_app/controllers/admin.py --- a/pylons_app/controllers/admin.py +++ b/pylons_app/controllers/admin.py @@ -53,7 +53,8 @@ class AdminController(BaseController): ) if c.admin_user: sa = meta.Session - c.users_log = sa.query(UserLogs).limit(10).all() + c.users_log = sa.query(UserLogs)\ + .order_by(UserLogs.action_date.desc()).limit(10).all() return render('/admin.html') def hgrc(self, dirname): diff --git a/pylons_app/templates/admin.html b/pylons_app/templates/admin.html --- a/pylons_app/templates/admin.html +++ b/pylons_app/templates/admin.html @@ -34,7 +34,7 @@

Welcome ${c.admin_username}

-
Last 5 user actions
+
${_('Last 10 user actions')
%if c.users_log: