Changeset - 99afa4d28e2b
[Not reviewed]
default
0 2 0
Marcin Kuzminski - 16 years ago 2010-04-13 22:30:52
marcin@python-blog.com
Changed order of user actions log
2 files changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
pylons_app/controllers/admin.py
Show inline comments
 
@@ -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):
pylons_app/templates/admin.html
Show inline comments
 
@@ -34,7 +34,7 @@
 
    <br/>
 
    <div>
 
        <h2>Welcome ${c.admin_username}</h2>
 
        <div>Last 5 user actions</div>
 
        <div>${_('Last 10 user actions')</div>
 
        %if c.users_log:
 
	        <table>
 
	        <tr>
0 comments (0 inline, 0 general)