Commit 6ae49075 authored by liuzheng712's avatar liuzheng712

update

parent f863f4b7
...@@ -28,4 +28,6 @@ urlpatterns = patterns('juser.views', ...@@ -28,4 +28,6 @@ urlpatterns = patterns('juser.views',
(r'^change_role/$', 'chg_role'), (r'^change_role/$', 'chg_role'),
(r'^regen_ssh_key/$', 'regen_ssh_key'), (r'^regen_ssh_key/$', 'regen_ssh_key'),
(r'^down_key/$', 'down_key'), (r'^down_key/$', 'down_key'),
(r'runcommand/$', 'RunCommand'),
) )
...@@ -488,3 +488,8 @@ def down_key(request): ...@@ -488,3 +488,8 @@ def down_key(request):
return response return response
return HttpResponse('No Key File. Contact Admin.') return HttpResponse('No Key File. Contact Admin.')
from jperm.perm_api import get_group_user_perm
def RunCommand(request):
if request.method == 'GET':
print
return render_to_response('juser/run_command.html', locals(), context_instance=RequestContext(request))
\ No newline at end of file
...@@ -128,6 +128,9 @@ ...@@ -128,6 +128,9 @@
<li class="apply_show online"><a href="/jperm/apply_show/online/">申请记录</a></li> <li class="apply_show online"><a href="/jperm/apply_show/online/">申请记录</a></li>
</ul> </ul>
</li> </li>
<li id="command">
<a href="/juser/runcommand/"><span>批量执行命令</span></a>
</li>
<li id="jlog"> <li id="jlog">
<a href="/jlog/log_list/online/"><i class="fa fa-files-o"></i> <span class="nav-label">登录历史</span><span class="label label-info pull-right"></span></a> <a href="/jlog/log_list/online/"><i class="fa fa-files-o"></i> <span class="nav-label">登录历史</span><span class="label label-info pull-right"></span></a>
</li> </li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment