# HG changeset patch # User Marcin Kuzminski # Date 1284375740 -7200 # Node ID 8ba65e4c4e4cf8f203bcf0cc9b1a12c9d3b4cc6a # Parent 9dd38344c466552f5e1486b518a11df94ebfb670 added journal icon and made active links in journal, fixed edit user bug when given wrong id diff -r 9dd38344c466 -r 8ba65e4c4e4c pylons_app/controllers/admin/users.py --- a/pylons_app/controllers/admin/users.py Mon Sep 13 01:38:14 2010 +0200 +++ b/pylons_app/controllers/admin/users.py Mon Sep 13 13:02:20 2010 +0200 @@ -148,6 +148,8 @@ """GET /users/id/edit: Form to edit an existing item""" # url('edit_user', id=ID) c.user = self.sa.query(User).get(id) + if not c.user: + return redirect(url('users')) if c.user.username == 'default': h.flash(_("You can't edit this user since it's" " crucial for entire application"), category='warning') diff -r 9dd38344c466 -r 8ba65e4c4e4c pylons_app/public/css/style.css --- a/pylons_app/public/css/style.css Mon Sep 13 01:38:14 2010 +0200 +++ b/pylons_app/public/css/style.css Mon Sep 13 13:02:20 2010 +0200 @@ -505,6 +505,15 @@ /*ICONS*/ +#header #header-inner #quick li ul li a.journal, +#header #header-inner #quick li ul li a.journal:hover +{ + background:url("../images/icons/book.png") no-repeat scroll 4px 9px #FFFFFF; + margin:0; + padding:12px 9px 7px 24px; + width:167px; + +} #header #header-inner #quick li ul li a.repos, #header #header-inner #quick li ul li a.repos:hover diff -r 9dd38344c466 -r 8ba65e4c4e4c pylons_app/templates/admin/admin_log.html --- a/pylons_app/templates/admin/admin_log.html Mon Sep 13 01:38:14 2010 +0200 +++ b/pylons_app/templates/admin/admin_log.html Mon Sep 13 13:02:20 2010 +0200 @@ -11,8 +11,8 @@ %for cnt,l in enumerate(c.users_log): - ${l.user.username} - ${l.repository} + ${h.link_to(l.user.username,h.url('edit_user', id=l.user.user_id))} + ${h.link_to(l.repository,h.url('summary_home',repo_name=l.repository))} ${l.action} ${l.action_date} ${l.user_ip} diff -r 9dd38344c466 -r 8ba65e4c4e4c pylons_app/templates/base/base.html --- a/pylons_app/templates/base/base.html Mon Sep 13 01:38:14 2010 +0200 +++ b/pylons_app/templates/base/base.html Mon Sep 13 13:02:20 2010 +0200 @@ -203,6 +203,7 @@ ${_('Admin')}