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
78aba7ae
Commit
78aba7ae
authored
Sep 25, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 用户资产页面链接是 新窗口打开
parent
3c12c339
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
user_remote_app_list.html
...ications/templates/applications/user_remote_app_list.html
+1
-1
user_asset_list.html
apps/assets/templates/assets/user_asset_list.html
+2
-3
No files found.
apps/applications/templates/applications/user_remote_app_list.html
View file @
78aba7ae
...
...
@@ -49,7 +49,7 @@ function initTable() {
$
(
td
).
html
(
hostname
);
}},
{
targets
:
5
,
createdCell
:
function
(
td
,
cellData
,
rowData
)
{
var
conn_btn
=
'<a href="{% url "luna-view" %}?type=remote_app&login_to='
+
cellData
+
'" class="btn btn-xs btn-primary">{% trans "Connect" %}</a>'
.
replace
(
"{{ DEFAULT_PK }}"
,
cellData
);
var
conn_btn
=
'<a href="{% url "luna-view" %}?type=remote_app&login_to='
+
cellData
+
'" class="btn btn-xs btn-primary"
target="_blank"
>{% trans "Connect" %}</a>'
.
replace
(
"{{ DEFAULT_PK }}"
,
cellData
);
$
(
td
).
html
(
conn_btn
)
}}
],
...
...
apps/assets/templates/assets/user_asset_list.html
View file @
78aba7ae
...
...
@@ -29,7 +29,7 @@ var showAssetHref = false; // Need input default true
var
actions
=
{
targets
:
4
,
createdCell
:
function
(
td
,
cellData
)
{
var
conn_btn
=
'<a href="{% url "luna-view" %}?login_to='
+
cellData
+
'" class="btn btn-xs btn-primary">{% trans "Connect" %}</a>'
;
'" class="btn btn-xs btn-primary"
target="_blank"
>{% trans "Connect" %}</a>'
;
$
(
td
).
html
(
conn_btn
)
}};
$
(
document
).
ready
(
function
()
{
...
...
@@ -85,4 +85,4 @@ function toggle() {
}
</script>
{% endblock %}
\ No newline at end of file
{% 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