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
297820b6
Commit
297820b6
authored
Jul 01, 2019
by
八千流
Committed by
BaiJiangJie
Jul 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 优化组织名字过长显示不友好问题 (#2855)
* [Update] 优化组织名字过长显示不友好问题 * [Update] 优化组织名字前端盒子默认最小宽度为220px
parent
abad9294
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
_user_profile.html
apps/templates/_user_profile.html
+4
-6
No files found.
apps/templates/_user_profile.html
View file @
297820b6
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</div>
</div>
{% if ADMIN_ORGS and request.COOKIES.IN_ADMIN_PAGE != 'No' %}
{% if ADMIN_ORGS and request.COOKIES.IN_ADMIN_PAGE != 'No' %}
{% if ADMIN_ORGS|length > 1 or not CURRENT_ORG.is_default %}
{% if ADMIN_ORGS|length > 1 or not CURRENT_ORG.is_default %}
<div
style=
"height: 55px;"
>
<div>
<a
class=
"dropdown-toggle"
data-toggle=
"dropdown"
aria-expanded=
"false"
style=
"display: block; background-color: transparent; color: #8095a8; padding: 14px 20px 14px 25px"
>
<a
class=
"dropdown-toggle"
data-toggle=
"dropdown"
aria-expanded=
"false"
style=
"display: block; background-color: transparent; color: #8095a8; padding: 14px 20px 14px 25px"
>
<i
class=
"fa fa-bookmark"
style=
"width: 14px; "
></i>
<i
class=
"fa fa-bookmark"
style=
"width: 14px; "
></i>
<span
class=
"nav-label"
style=
"padding-left: 7px"
>
<span
class=
"nav-label"
style=
"padding-left: 7px"
>
...
@@ -19,15 +19,13 @@
...
@@ -19,15 +19,13 @@
</span>
</span>
<span
class=
"fa fa-sort-desc pull-right"
></span>
<span
class=
"fa fa-sort-desc pull-right"
></span>
</a>
</a>
<ul
class=
"dropdown-menu"
style=
"
width: 219px;
"
>
<ul
class=
"dropdown-menu"
style=
"
min-width: 220px
"
>
{% for org in ADMIN_ORGS %}
{% for org in ADMIN_ORGS %}
<li>
<li>
<a
class=
"org-dropdown"
<a
class=
"org-dropdown"
href=
"{% url 'orgs:org-switch' pk=org.id %}"
data-id=
"{{ org.id }}"
>
href=
"{% url 'orgs:org-switch' pk=org.id %}"
data-id=
"{{ org.id }}"
>
{{ org.name }}
{{ org.name }}
{% if org.id == CURRENT_ORG.id %}
{% if org.id == CURRENT_ORG.id %}
<span
class=
"fa fa-circle
pull-right
"
style=
"padding-top: 5px; color: #1ab394"
></span>
<span
class=
"fa fa-circle"
style=
"padding-top: 5px; color: #1ab394"
></span>
{% endif %}
{% endif %}
</a>
</a>
</li>
</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