Mercurial > kallithea
diff pylons_app/templates/admin.html @ 62:4df4c0eac619
Updated admin to show last 5 actions + updated db model
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Sat, 10 Apr 2010 16:42:08 +0200 |
parents | f6ac79182600 |
children | 99afa4d28e2b |
line wrap: on
line diff
--- a/pylons_app/templates/admin.html Sat Apr 10 16:29:25 2010 +0200 +++ b/pylons_app/templates/admin.html Sat Apr 10 16:42:08 2010 +0200 @@ -33,8 +33,29 @@ </ul> <br/> <div> - - <h2>Hi !</h2> + <h2>Welcome ${c.admin_username}</h2> + <div>Last 5 user actions</div> + %if c.users_log: + <table> + <tr> + <td>${_('Username')}</td> + <td>${_('Repository')}</td> + <td>${_('Action')}</td> + <td>${_('Date')}</td> + </tr> + %for cnt,l in enumerate(c.users_log): + <tr class="parity${cnt%2}"> + <td>${l.user.username}</td> + <td>${l.repository}</td> + <td>${l.action}</td> + <td>${l.action_date}</td> + </tr> + %endfor + </table> + %else: + ${_('No actions yet')} + %endif + </div> %else: <div>