Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
f4970039
Commit
f4970039
authored
Jan 05, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改content
parent
ba5757e3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
74 additions
and
67 deletions
+74
-67
urls.py
jumpserver/urls.py
+2
-1
views.py
jumpserver/views.py
+4
-0
urls.py
juser/urls.py
+1
-1
inspinia.js
static/js/inspinia.js
+3
-3
nav.html
templates/nav.html
+61
-62
nav_bar_header.html
templates/nav_bar_header.html
+0
-0
user_add.html
templates/user_add.html
+3
-0
No files found.
jumpserver/urls.py
View file @
f4970039
...
@@ -6,6 +6,7 @@ urlpatterns = patterns('',
...
@@ -6,6 +6,7 @@ urlpatterns = patterns('',
# url(r'^$', 'jumpserver.views.home', name='home'),
# url(r'^$', 'jumpserver.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
# url(r'^blog/', include('blog.urls')),
(
r'^user/'
,
include
(
'juser.urls'
)),
(
r'^skin_config/$'
,
'jumpserver.views.skin_config'
),
(
r'^juser/'
,
include
(
'juser.urls'
)),
url
(
r'^jasset/'
,
include
(
'jasset.urls'
)),
url
(
r'^jasset/'
,
include
(
'jasset.urls'
)),
)
)
jumpserver/views.py
View file @
f4970039
...
@@ -6,3 +6,7 @@ from django.shortcuts import render_to_response
...
@@ -6,3 +6,7 @@ from django.shortcuts import render_to_response
def
base
(
request
):
def
base
(
request
):
return
render_to_response
(
'base.html'
)
return
render_to_response
(
'base.html'
)
def
skin_config
(
request
):
return
render_to_response
(
'skin_config.html'
)
juser/urls.py
View file @
f4970039
...
@@ -6,5 +6,5 @@ urlpatterns = patterns('juser.views',
...
@@ -6,5 +6,5 @@ urlpatterns = patterns('juser.views',
# url(r'^$', 'jumpserver.views.home', name='home'),
# url(r'^$', 'jumpserver.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
# url(r'^blog/', include('blog.urls')),
(
r'^useradd/$'
,
'user_add'
),
(
r'^user
_
add/$'
,
'user_add'
),
)
)
static/js/inspinia.js
View file @
f4970039
...
@@ -34,9 +34,9 @@ $(document).ready(function () {
...
@@ -34,9 +34,9 @@ $(document).ready(function () {
});
});
// Append config box / Only for demo purpose
// Append config box / Only for demo purpose
//
$.get("/skin_config/", function (data) {
$
.
get
(
"/skin_config/"
,
function
(
data
)
{
//
$('body').append(data);
$
(
'body'
).
append
(
data
);
//
});
});
// minimalize menu
// minimalize menu
$
(
'.navbar-minimalize'
).
click
(
function
()
{
$
(
'.navbar-minimalize'
).
click
(
function
()
{
...
...
templates/nav.html
View file @
f4970039
<nav
class=
"navbar-default navbar-static-side"
role=
"navigation"
>
<nav
class=
"navbar-default navbar-static-side"
role=
"navigation"
>
<div
class=
"sidebar-collapse"
>
<div
class=
"sidebar-collapse"
>
<ul
class=
"nav"
id=
"side-menu"
>
<ul
class=
"nav"
id=
"side-menu"
>
{% include 'nav_li_profile.html' %}
{% include 'nav_li_profile.html' %}
<li>
<li>
<a
href=
"css_animation.html"
><i
class=
"fa fa-th-large"
></i>
<span
class=
"nav-label"
>
仪表盘
</span><span
class=
"label label-info pull-right"
></span></a>
<a
href=
"css_animation.html"
><i
class=
"fa fa-th-large"
></i>
<span
class=
"nav-label"
>
仪表盘
</span><span
class=
"label label-info pull-right"
></span></a>
<!--<a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">仪表盘</span> <span class="fa arrow"></span></a>
<!--<a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">仪表盘</span> <span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<ul class="nav nav-second-level">
<li><a href="index.html">Dashboard v.1</a></li>
<li><a href="index.html">Dashboard v.1</a></li>
<li ><a href="dashboard_2.html">Dashboard v.2</a></li>
<li ><a href="dashboard_2.html">Dashboard v.2</a></li>
<li ><a href="dashboard_3.html">Dashboard v.3</a></li>
<li ><a href="dashboard_3.html">Dashboard v.3</a></li>
</ul>-->
</ul>-->
</li>
</li>
<li>
<li>
<a
href=
"#"
><i
class=
"fa fa-rebel"
></i>
<span
class=
"nav-label"
>
用户管理
</span><span
class=
"fa arrow"
></span></a>
<a
href=
"#"
><i
class=
"fa fa-rebel"
></i>
<span
class=
"nav-label"
>
用户管理
</span><span
class=
"fa arrow"
></span></a>
<ul
class=
"nav nav-second-level"
>
<ul
class=
"nav nav-second-level"
>
<li><a
href=
"/user/showlist/"
>
查看用户
</a></li>
<li><a
href=
"/user/showlist/"
>
查看用户
</a></li>
<li><a
href=
"/user/add/"
>
添加用户
</a></li>
<li><a
href=
"/user/add/"
>
添加用户
</a></li>
<li><a
href=
"/group/showlist/"
>
查看属组
</a></li>
<li><a
href=
"/group/showlist/"
>
查看属组
</a></li>
<li><a
href=
"/group/add/"
>
添加属组
</a></li>
<li><a
href=
"/group/add/"
>
添加属组
</a></li>
</ul>
</ul>
</li>
</li>
<li>
<li>
<a
href=
"mailbox.html"
><i
class=
"fa fa-cube"
></i>
<span
class=
"nav-label"
>
资产管理
</span><span
class=
"fa arrow"
></span></a>
<a
href=
"mailbox.html"
><i
class=
"fa fa-cube"
></i>
<span
class=
"nav-label"
>
资产管理
</span><span
class=
"fa arrow"
></span></a>
<ul
class=
"nav nav-second-level"
>
<ul
class=
"nav nav-second-level"
>
<li><a
href=
"/asset/showlist/"
>
查看资产
</a></li>
<li><a
href=
"/asset/showlist/"
>
查看资产
</a></li>
<li><a
href=
"/jasset/jadd/"
>
添加资产
</a></li>
<li><a
href=
"/jasset/jadd/"
>
添加资产
</a></li>
<li><a
href=
"/idc/showlist/"
>
查看机房
</a></li>
<li><a
href=
"/idc/showlist/"
>
查看机房
</a></li>
<li><a
href=
"/idc/add/"
>
添加机房
</a></li>
<li><a
href=
"/idc/add/"
>
添加机房
</a></li>
</ul>
</ul>
</li>
</li>
<li>
<li>
<a
href=
"#"
><i
class=
"fa fa-edit"
></i>
<span
class=
"nav-label"
>
授权管理
</span><span
class=
"fa arrow"
></span></a>
<a
href=
"#"
><i
class=
"fa fa-edit"
></i>
<span
class=
"nav-label"
>
授权管理
</span><span
class=
"fa arrow"
></span></a>
<ul
class=
"nav nav-second-level"
>
<ul
class=
"nav nav-second-level"
>
<li><a
href=
"/perm/showlist/"
>
查看授权
</a></li>
<li><a
href=
"/perm/showlist/"
>
查看授权
</a></li>
<li><a
href=
"/perm/add/"
>
添加授权
</a></li>
<li><a
href=
"/perm/add/"
>
添加授权
</a></li>
<li><a
href=
"/sudo/showlist/"
>
查看sudo
</a></li>
<li><a
href=
"/sudo/showlist/"
>
查看sudo
</a></li>
<li><a
href=
"/sudo/add/"
>
添加sudo
</a></li>
<li><a
href=
"/sudo/add/"
>
添加sudo
</a></li>
</ul>
</li>
<li>
<a
href=
"#"
><i
class=
"fa fa-files-o"
></i>
<span
class=
"nav-label"
>
日志审计
</span><span
class=
"fa arrow"
></span></a>
<ul
class=
"nav nav-second-level"
>
<li><a
href=
"/log/showlist/"
>
查看日志
</a></li>
<li><a
href=
"/log/detail/"
>
日志分析
</a></li>
</ul>
</li>
<li>
<a
href=
"#"
><i
class=
"fa fa-download"
></i>
<span
class=
"nav-label"
>
上传下载
</span><span
class=
"fa arrow"
></span></a>
<ul
class=
"nav nav-second-level"
>
<li><a
href=
"/file/upload/"
>
文件上传
</a></li>
<li><a
href=
"/file/download/"
>
文件下载
</a></li>
</ul>
</li>
<li
class=
"special_link"
>
<a
href=
"http://www.jumpserver.org"
target=
"_blank"
><i
class=
"fa fa-database"
></i>
<span
class=
"nav-label"
>
访问官网
</span></a>
</li>
</ul>
</ul>
</li>
<li>
<a
href=
"#"
><i
class=
"fa fa-files-o"
></i>
<span
class=
"nav-label"
>
日志审计
</span><span
class=
"fa arrow"
></span></a>
<ul
class=
"nav nav-second-level"
>
<li><a
href=
"/log/showlist/"
>
查看日志
</a></li>
<li><a
href=
"/log/detail/"
>
日志分析
</a></li>
</ul>
</li>
<li>
<a
href=
"#"
><i
class=
"fa fa-download"
></i>
<span
class=
"nav-label"
>
上传下载
</span><span
class=
"fa arrow"
></span></a>
<ul
class=
"nav nav-second-level"
>
<li><a
href=
"/file/upload/"
>
文件上传
</a></li>
<li><a
href=
"/file/download/"
>
文件下载
</a></li>
</ul>
</li>
<li
class=
"special_link"
>
<a
href=
"http://www.jumpserver.org"
target=
"_blank"
><i
class=
"fa fa-database"
></i>
<span
class=
"nav-label"
>
访问官网
</span></a>
</li>
</ul>
</div>
</div>
</nav>
</nav>
\ No newline at end of file
\ No newline at end of file
templates/nav_bar_header.html
View file @
f4970039
This diff is collapsed.
Click to expand it.
templates/user_add.html
View file @
f4970039
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
{% block content %}
{% block content %}
{% include 'nav_cat_bar.html' %}
{% include 'nav_cat_bar.html' %}
<div
class=
"wrapper wrapper-content animated fadeInRight"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-lg-10"
>
<div
class=
"col-lg-10"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox float-e-margins"
>
...
@@ -56,6 +57,7 @@
...
@@ -56,6 +57,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment