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
70960d2a
Commit
70960d2a
authored
Oct 15, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'github/dev' into dev
parents
f37582ec
d2c574fe
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
1 deletion
+20
-1
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
+10
-0
No files found.
apps/assets/models/node.py
View file @
70960d2a
...
...
@@ -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 @
70960d2a
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
70960d2a
This diff is collapsed.
Click to expand it.
apps/static/js/jumpserver.js
View file @
70960d2a
...
...
@@ -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 @
70960d2a
...
...
@@ -95,7 +95,17 @@
</a>
<ul
class=
"nav nav-second-level"
>
{% for plugin in XPACK_PLUGINS %}
{% 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