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
df2c2fc7
Commit
df2c2fc7
authored
10 years ago
by
halcyon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zhoumo
parent
fef22445
master
auditor_jym
audits
dev
dev_beta
dev_beta_db
gengmei
lagacy-0.4.0
node_service
password
rbac
restrict_access
test
v52
wph
1.5.2
1.5.1
1.5.0
1.4.10
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
0.3.3
0.3.2
0.3.2-rc2
0.3.1
0.3.0-beta
0.2.1
0.2.0
v1.4.10
v1.4.7
v1.4.4
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
views.py
jasset/views.py
+1
-1
index.html
templates/index.html
+5
-5
jlist_ip.html
templates/jasset/jlist_ip.html
+1
-1
No files found.
jasset/views.py
View file @
df2c2fc7
...
...
@@ -60,7 +60,7 @@ def f_add_host(ip, port, idc, jtype, group, dept, active, comment, username='',
def
add_host
(
request
):
login_types
=
{
'L'
:
'LDAP'
,
'M'
:
'MAP'
}
header_title
,
path1
,
path2
=
u'添加主机'
,
u'资产管理'
,
u'添加主机'
eidc
=
IDC
.
objects
.
all
(
)
eidc
=
IDC
.
objects
.
exclude
(
name
=
'ALL'
)
if
is_super_user
(
request
):
edept
=
DEPT
.
objects
.
all
()
egroup
=
BisGroup
.
objects
.
exclude
(
name
=
'ALL'
)
...
...
This diff is collapsed.
Click to expand it.
templates/index.html
View file @
df2c2fc7
...
...
@@ -7,7 +7,7 @@
<div
class=
"col-lg-3"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<span
class=
"label label-success pull-right"
>
Monthly
</span>
<span
class=
"label label-success pull-right"
>
Users
</span>
<h5>
用户总数
</h5>
</div>
<div
class=
"ibox-content"
>
...
...
@@ -20,7 +20,7 @@
<div
class=
"col-lg-3"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<span
class=
"label label-info pull-right"
>
Annual
</span>
<span
class=
"label label-info pull-right"
>
Hosts
</span>
<h5>
主机总数
</h5>
</div>
<div
class=
"ibox-content"
>
...
...
@@ -34,7 +34,7 @@
<div
class=
"col-lg-3"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<span
class=
"label label-primary pull-right"
>
Today
</span>
<span
class=
"label label-primary pull-right"
>
Online
</span>
<h5>
实时在线用户
</h5>
</div>
<div
class=
"ibox-content"
>
...
...
@@ -48,13 +48,13 @@
<div
class=
"col-lg-3"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<span
class=
"label label-danger pull-right"
>
Low value
</span>
<span
class=
"label label-danger pull-right"
>
Connected
</span>
<h5>
已连接服务器
</h5>
</div>
<div
class=
"ibox-content"
>
<h1
class=
"no-margins"
><a
href=
"/jlog/log_list/online/"
>
<span
id=
"online_hosts"
></span></a></h1>
<div
class=
"stat-percent font-bold text-danger"
>
38%
<i
class=
"fa fa-level-down"
></i></div>
<small>
Connect host
</small>
<small>
Connect
ed
host
</small>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
templates/jasset/jlist_ip.html
View file @
df2c2fc7
...
...
@@ -34,7 +34,7 @@
<td>
{{ post.port }}
</td>
<td>
{{ login_types|get_item:post.login_type }}
</td>
<td
class=
"text-center"
>
{{ post.idc.name }}
</td>
<td
class=
"text-center"
>
{% for group in post.bis_group.all
|filter_private
%} {{ group }} {% endfor %}
</td>
<td
class=
"text-center"
>
{% for group in post.bis_group.all %} {{ group }} {% endfor %}
</td>
<td
class=
"text-center"
>
{{ post.date_added|date:"Y-m-d H:i:s" }}
</td>
<td
class=
"text-center"
>
{{ post.comment }}
</td>
</tr>
...
...
This diff is collapsed.
Click to expand it.
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