##// END OF EJS Templates
Changed order of user actions log
Marcin Kuzminski -
r75:99afa4d2 default
parent child Browse files
Show More
@@ -53,7 +53,8 b' class AdminController(BaseController):'
53 )
53 )
54 if c.admin_user:
54 if c.admin_user:
55 sa = meta.Session
55 sa = meta.Session
56 c.users_log = sa.query(UserLogs).limit(10).all()
56 c.users_log = sa.query(UserLogs)\
57 .order_by(UserLogs.action_date.desc()).limit(10).all()
57 return render('/admin.html')
58 return render('/admin.html')
58
59
59 def hgrc(self, dirname):
60 def hgrc(self, dirname):
@@ -34,7 +34,7 b''
34 <br/>
34 <br/>
35 <div>
35 <div>
36 <h2>Welcome ${c.admin_username}</h2>
36 <h2>Welcome ${c.admin_username}</h2>
37 <div>Last 5 user actions</div>
37 <div>${_('Last 10 user actions')</div>
38 %if c.users_log:
38 %if c.users_log:
39 <table>
39 <table>
40 <tr>
40 <tr>
General Comments 0
You need to be logged in to leave comments. Login now