##// END OF EJS Templates
added journal icon and made active links in journal, fixed edit user bug when given wrong id
marcink -
r476:8ba65e4c celery
parent child Browse files
Show More
@@ -148,6 +148,8 b' class UsersController(BaseController):'
148 148 """GET /users/id/edit: Form to edit an existing item"""
149 149 # url('edit_user', id=ID)
150 150 c.user = self.sa.query(User).get(id)
151 if not c.user:
152 return redirect(url('users'))
151 153 if c.user.username == 'default':
152 154 h.flash(_("You can't edit this user since it's"
153 155 " crucial for entire application"), category='warning')
@@ -505,6 +505,15 b' div.options a:hover'
505 505
506 506
507 507 /*ICONS*/
508 #header #header-inner #quick li ul li a.journal,
509 #header #header-inner #quick li ul li a.journal:hover
510 {
511 background:url("../images/icons/book.png") no-repeat scroll 4px 9px #FFFFFF;
512 margin:0;
513 padding:12px 9px 7px 24px;
514 width:167px;
515
516 }
508 517
509 518 #header #header-inner #quick li ul li a.repos,
510 519 #header #header-inner #quick li ul li a.repos:hover
@@ -11,8 +11,8 b''
11 11
12 12 %for cnt,l in enumerate(c.users_log):
13 13 <tr class="parity${cnt%2}">
14 <td>${l.user.username}</td>
15 <td>${l.repository}</td>
14 <td>${h.link_to(l.user.username,h.url('edit_user', id=l.user.user_id))}</td>
15 <td>${h.link_to(l.repository,h.url('summary_home',repo_name=l.repository))}</td>
16 16 <td>${l.action}</td>
17 17 <td>${l.action_date}</td>
18 18 <td>${l.user_ip}</td>
@@ -203,6 +203,7 b''
203 203 <span>${_('Admin')}</span>
204 204 </a>
205 205 <ul>
206 <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li>
206 207 <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li>
207 208 <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li>
208 209 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
General Comments 0
You need to be logged in to leave comments. Login now