mirror of https://github.com/jumpserver/jumpserver
修改bug
parent
68f67aecce
commit
7e41f28864
|
@ -10,5 +10,5 @@ urlpatterns = patterns('juser.views',
|
|||
(r'^user_list/$', 'user_list'),
|
||||
(r'^group_add/$', 'group_add'),
|
||||
(r'^group_list/$', 'group_list'),
|
||||
(r"^user_detail/$", 'user_detail'),
|
||||
(r'^user_detail/$', 'user_detail'),
|
||||
)
|
||||
|
|
|
@ -175,7 +175,7 @@ def user_detail(request):
|
|||
if not username:
|
||||
return HttpResponseRedirect('/')
|
||||
user = User.objects.get(username=username)
|
||||
return render_to_response('juser/user_detail.html', locals(), context_instance=RequestContext(request))
|
||||
return render_to_response('juser/user_detail.html', locals())
|
||||
|
||||
|
||||
def db_add_user(**kwargs):
|
||||
|
|
|
@ -59,9 +59,9 @@
|
|||
<td class="text-center">{{ user.email }}</td>
|
||||
<td class="text-center">{{ user.is_active|bool2str }}</td>
|
||||
<td class="text-center">
|
||||
<a href="/juser/user_detail/?{{ user.username }}/" class="iframe btn btn-xs btn-primary">详情</a>
|
||||
<a href="/juser/user_edit/{{ user.username }}" class="btn btn-xs btn-info">编辑</a>
|
||||
<a href="/juser/user_del/{{ user.username }}" class="btn btn-xs btn-danger">删除</a>
|
||||
<a href="../user_detail/?{{ user.username }}/" class="iframe btn btn-xs btn-primary">详情</a>
|
||||
<a href="../user_edit/{{ user.username }}" class="btn btn-xs btn-info">编辑</a>
|
||||
<a href="../user_del/{{ user.username }}" class="btn btn-xs btn-danger">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue