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
d2c574fe
Unverified
Commit
d2c574fe
authored
Oct 15, 2018
by
老广
Committed by
GitHub
Oct 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1910 from jumpserver/dev_cloud_manager
[Feature] 添加xpack-云管中心模块
parents
7bafa546
a70fcf05
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
2 deletions
+21
-2
node.py
apps/assets/models/node.py
+2
-0
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+0
-0
jumpserver.js
apps/static/js/jumpserver.js
+8
-1
_nav.html
apps/templates/_nav.html
+11
-1
No files found.
apps/assets/models/node.py
View file @
d2c574fe
...
...
@@ -31,6 +31,8 @@ class Node(OrgModelMixin):
return
self
.
full_value
def
__eq__
(
self
,
other
):
if
not
other
:
return
False
return
self
.
key
==
other
.
key
def
__gt__
(
self
,
other
):
...
...
apps/locale/zh/LC_MESSAGES/django.mo
View file @
d2c574fe
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
d2c574fe
This diff is collapsed.
Click to expand it.
apps/static/js/jumpserver.js
View file @
d2c574fe
...
...
@@ -145,7 +145,14 @@ function activeNav() {
var
resource
=
url_array
[
2
];
if
(
app
===
''
){
$
(
'#index'
).
addClass
(
'active'
);
}
else
{
}
else
if
(
app
===
'xpack'
)
{
var
item
=
url_array
[
3
];
$
(
"#"
+
app
).
addClass
(
'active'
);
$
(
'#'
+
app
+
' #'
+
resource
).
addClass
(
'active'
);
$
(
'#'
+
app
+
' #'
+
resource
+
' #'
+
item
+
' a'
).
css
(
'color'
,
'#ffffff'
);
}
else
{
$
(
"#"
+
app
).
addClass
(
'active'
);
$
(
'#'
+
app
+
' #'
+
resource
).
addClass
(
'active'
);
}
...
...
apps/templates/_nav.html
View file @
d2c574fe
...
...
@@ -95,7 +95,17 @@
</a>
<ul
class=
"nav nav-second-level"
>
{% for plugin in XPACK_PLUGINS %}
<li
id=
"{{ plugin.name }}"
><a
href=
"{{ plugin.endpoint }}"
>
{% trans plugin.verbose_name %}
</a></li>
{% ifequal plugin.name 'cloud'%}
<li
id=
"{{ plugin.name }}"
>
<a
href=
"#"
><span
class=
"nav-label"
>
{% trans plugin.verbose_name %}
</span><span
class=
"fa arrow"
></span></a>
<ul
class=
"nav nav-third-level"
>
<li
id=
"account"
><a
href=
"{% url 'xpack:cloud:account-list' %}"
>
{% trans 'Account list' %}
</a></li>
<li
id=
"sync-task"
><a
href=
"{% url 'xpack:cloud:sync-task-list' %}"
>
{% trans 'Task list' %}
</a></li>
</ul>
</li>
{% else %}
<li
id=
"{{ plugin.name }}"
><a
href=
"{{ plugin.endpoint }}"
>
{% trans plugin.verbose_name %}
</a></li>
{% endifequal %}
{% endfor %}
</ul>
</li>
...
...
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