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
168335a3
Commit
168335a3
authored
Apr 03, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 更新内容
parent
121726b7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
domain_gateway_list.html
apps/assets/templates/assets/domain_gateway_list.html
+2
-2
domain_list.html
apps/assets/templates/assets/domain_list.html
+5
-1
task_list.html
apps/ops/templates/ops/task_list.html
+1
-1
No files found.
apps/assets/templates/assets/domain_gateway_list.html
View file @
168335a3
...
...
@@ -95,8 +95,8 @@ function initTable() {
],
ajax_url
:
'{% url "api-assets:gateway-list" %}?domain={{ object.id }}'
,
columns
:
[
{
data
:
"id"
},
{
data
:
"name"
},
{
data
:
'ip'
},
{
data
:
'port'
},
{
data
:
"username"
},
{
data
:
"protocol"
},
{
data
:
"comment"
},
{
data
:
"id"
}
{
data
:
"id"
},
{
data
:
"name"
},
{
data
:
'ip'
},
{
data
:
'port'
},
{
data
:
"protocol"
},
{
data
:
"
username"
},
{
data
:
"
comment"
},
{
data
:
"id"
}
],
op_html
:
$
(
'#actions'
).
html
()
};
...
...
apps/assets/templates/assets/domain_list.html
View file @
168335a3
...
...
@@ -33,7 +33,11 @@ function initTable() {
var
detail_btn
=
'<a href="{% url "assets:domain-detail" pk=DEFAULT_PK %}">'
+
cellData
+
'</a>'
;
$
(
td
).
html
(
detail_btn
.
replace
(
'{{ DEFAULT_PK }}'
,
rowData
.
id
));
}},
{
targets
:
3
,
createdCell
:
function
(
td
,
cellData
,
rowData
)
{
var
gateway_list_btn
=
'<a href="{% url "assets:domain-gateway-list" pk=DEFAULT_PK %}">'
+
cellData
+
'</a>'
;
gateway_list_btn
=
gateway_list_btn
.
replace
(
"{{ DEFAULT_PK }}"
,
rowData
.
id
);
$
(
td
).
html
(
gateway_list_btn
);
}},
{
targets
:
5
,
createdCell
:
function
(
td
,
cellData
,
rowData
)
{
var
update_btn
=
'<a href="{% url "assets:domain-update" pk=DEFAULT_PK %}" class="btn btn-xs btn-info">{% trans "Update" %}</a>'
.
replace
(
'{{ DEFAULT_PK }}'
,
cellData
);
var
del_btn
=
'<a class="btn btn-xs btn-danger m-l-xs btn-delete" data-uid="{{ DEFAULT_PK }}">{% trans "Delete" %}</a>'
.
replace
(
'{{ DEFAULT_PK }}'
,
cellData
);
...
...
apps/ops/templates/ops/task_list.html
View file @
168335a3
...
...
@@ -3,7 +3,7 @@
{% load static %}
{% block content_left_head %}
<div
class=
"uc pull-left m-r-5"
><a
class=
"btn btn-sm btn-primary btn-create-asset"
>
{% trans "Create task" %}
</a></div>
{#
<div
class=
"uc pull-left m-r-5"
><a
class=
"btn btn-sm btn-primary btn-create-asset"
>
{% trans "Create task" %}
</a></div>
#}
{% endblock %}
...
...
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