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
7648207a
Commit
7648207a
authored
Jan 03, 2018
by
i317280
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of github.com:jumpserver/jumpserver into dev
parents
720dc9ab
9a2fbba9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
42 deletions
+64
-42
jumpserver.css
apps/static/css/jumpserver.css
+34
-0
_header_bar.html
apps/templates/_header_bar.html
+22
-3
_nav.html
apps/templates/_nav.html
+0
-6
_nav_user.html
apps/templates/_nav_user.html
+0
-6
_user_profile.html
apps/templates/_user_profile.html
+8
-27
No files found.
apps/static/css/jumpserver.css
View file @
7648207a
...
...
@@ -290,3 +290,36 @@ div.dataTables_wrapper div.dataTables_filter {
margin-left
:
10px
;
margin-right
:
10px
}
.navbar-default
{
background-color
:
#2f4050
;
border-color
:
#2f4050
;
}
.nav-header
,
body
.mini-navbar
.nav-header
{
padding
:
0
;
background
:
#202c37
;
}
.profile-element
div
:first-child
{
line-height
:
60px
;
width
:
70px
;
float
:
left
;
text-align
:
center
;
}
.profile-element
div
:last-child
a
{
line-height
:
60px
;
width
:
150px
;
float
:
left
;
font-size
:
22px
;
color
:
#1ab394
;
}
.logo-element
{
padding
:
10px
0
;
}
.welcome-message
img
{
margin
:
-11px
0
;
}
\ No newline at end of file
apps/templates/_header_bar.html
View file @
7648207a
...
...
@@ -18,11 +18,30 @@
<span
class=
"m-r-sm text-muted welcome-message"
>
{% trans 'Help' %}
</span>
</a>
</li>
<li>
<li
class=
"dropdown"
>
{% if user.is_authenticated %}
<a
href=
"{% url 'users:logout' %}"
>
<i
class=
"fa fa-sign-out"
></i>
{% trans 'Logout' %}
<a
data-toggle=
"dropdown"
class=
"dropdown-toggle"
href=
"#"
>
<span
class=
"m-r-sm text-muted welcome-message"
>
<img
alt=
"image"
class=
"img-circle"
width=
"40"
height=
"40"
src=
"{{ request.user.avatar_url }}"
/>
<strong
class=
"font-bold"
>
{{ request.user.name }}
<span
style=
"color: #8095a8"
></span>
<b
class=
"caret"
></b>
</strong>
</span>
</a>
<ul
class=
"dropdown-menu animated fadeInRight m-t-xs"
>
<li><a
href=
"{% url 'users:user-profile' %}"
>
{% trans 'Profile' %}
</a></li>
<li><a
href=
"{% url 'users:user-profile-update' %}"
>
{% trans 'Profile settings' %}
</a></li>
<li
class=
"divider"
></li>
{% if request.user.is_superuser %}
{% if request.COOKIES.IN_ADMIN_PAGE == 'No' %}
<li><a
id=
"switch_admin"
>
{% trans 'Admin page' %}
</a></li>
{% else %}
<li><a
id=
"switch_user"
>
{% trans 'User page' %}
</a></li>
{% endif %}
{% endif %}
<li><a
href=
"{% url 'users:logout' %}"
>
{% trans 'Logout' %}
</a></li>
</ul>
{% else %}
<a
href=
"{% url 'users:login' %}"
>
<i
class=
"fa fa-sign-in"
></i>
{% trans 'Login' %}
...
...
apps/templates/_nav.html
View file @
7648207a
...
...
@@ -68,8 +68,3 @@
{#
<i
class=
"fa fa-gears"
></i>
<span
class=
"nav-label"
>
{% trans 'Settings' %}
</span><span
class=
"label label-info pull-right"
></span>
#}
{#
</a>
#}
{#
</li>
#}
\ No newline at end of file
<li
class=
"special_link"
>
<a
href=
"http://www.jumpserver.org"
target=
"_blank"
><i
class=
"fa fa-database"
></i>
<span
class=
"nav-label"
>
{% trans 'Visit us' %}
</span>
</a>
</li>
\ No newline at end of file
apps/templates/_nav_user.html
View file @
7648207a
...
...
@@ -9,8 +9,3 @@
<i
class=
"fa fa-user"
></i>
<span
class=
"nav-label"
>
{% trans 'Profile' %}
</span><span
class=
"label label-info pull-right"
></span>
</a>
</li>
\ No newline at end of file
<li
class=
"special_link"
>
<a
href=
"http://www.jumpserver.org"
target=
"_blank"
><i
class=
"fa fa-database"
></i>
<span
class=
"nav-label"
>
访问官网
</span>
</a>
</li>
\ No newline at end of file
apps/templates/_user_profile.html
View file @
7648207a
...
...
@@ -2,35 +2,16 @@
{% load i18n %}
<li
class=
"nav-header"
>
<div
class=
"dropdown profile-element"
>
<span>
<img
alt=
"image"
class=
"img-circle"
width=
"48"
height=
"48"
src=
"{{ request.user.avatar_url }}"
/>
</span>
<a
data-toggle=
"dropdown"
class=
"dropdown-toggle"
href=
"#"
>
<span
class=
"clear"
>
<span
class=
"block m-t-xs"
>
<strong
class=
"font-bold"
>
{{ request.user.name }}
<span
style=
"color: #8095a8"
></span></strong>
</span>
<span
class=
"text-muted text-xs block"
>
{{ request.user.get_role_display | default:_('User') }}
<b
class=
"caret"
></b>
</span>
</span>
</a>
<ul
class=
"dropdown-menu animated fadeInRight m-t-xs"
>
<li><a
href=
"{% url 'users:user-profile' %}"
>
{% trans 'Profile' %}
</a></li>
<li><a
href=
"{% url 'users:user-profile-update' %}"
>
{% trans 'Profile settings' %}
</a></li>
<li
class=
"divider"
></li>
{% if request.user.is_superuser %}
{% if request.COOKIES.IN_ADMIN_PAGE == 'No' %}
<li><a
id=
"switch_admin"
>
{% trans 'Admin page' %}
</a></li>
{% else %}
<li><a
id=
"switch_user"
>
{% trans 'User page' %}
</a></li>
{% endif %}
{% endif %}
<li><a
href=
"{% url 'users:logout' %}"
>
{% trans 'Logout' %}
</a></li>
</ul>
<div>
<img
alt=
"image"
height=
"40"
src=
"/static/img/logo.png"
/>
</div>
<div>
<a
href=
"http://www.jumpserver.org"
target=
"_blank"
>
Jumpserver
</a>
</div>
</div>
<div
class=
"clearfix"
></div>
<div
class=
"logo-element"
>
JMS
<img
alt=
"image"
height=
"40"
src=
"/static/img/logo.png"
/>
</div>
</li>
<script>
...
...
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