Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
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
luna
Commits
0bfc57a7
Unverified
Commit
0bfc57a7
authored
Feb 04, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix the long long name
parent
39a33b5d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
mock.py
mock.py
+2
-2
cleftbar.component.css
src/app/ControlPage/cleftbar/cleftbar.component.css
+3
-0
cleftbar.component.html
src/app/ControlPage/cleftbar/cleftbar.component.html
+3
-2
cleftbar.component.ts
src/app/ControlPage/cleftbar/cleftbar.component.ts
+1
-0
No files found.
mock.py
View file @
0bfc57a7
...
@@ -125,7 +125,7 @@ def asset_groups_assets():
...
@@ -125,7 +125,7 @@ def asset_groups_assets():
},
},
{
{
"id"
:
1
,
"id"
:
1
,
"name"
:
"Default"
,
"name"
:
"Default
long name long name long name
"
,
"comment"
:
"Default asset group"
,
"comment"
:
"Default asset group"
,
"assets_granted"
:
[
"assets_granted"
:
[
{
{
...
@@ -157,7 +157,7 @@ def asset_groups_assets():
...
@@ -157,7 +157,7 @@ def asset_groups_assets():
},
},
{
{
"id"
:
44
,
"id"
:
44
,
"hostname"
:
"192.168.1.6"
,
"hostname"
:
"192.168.1.6
long name long name long name long name long name
"
,
"ip"
:
"192.168.2.6"
,
"ip"
:
"192.168.2.6"
,
"port"
:
22
,
"port"
:
22
,
"platform"
:
"Linux"
,
"platform"
:
"Linux"
,
...
...
src/app/ControlPage/cleftbar/cleftbar.component.css
View file @
0bfc57a7
...
@@ -42,6 +42,9 @@ label {
...
@@ -42,6 +42,9 @@ label {
list-style
:
none
;
list-style
:
none
;
cursor
:
pointer
;
cursor
:
pointer
;
color
:
#ffffff
;
color
:
#ffffff
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.filetree
label
{
.filetree
label
{
...
...
src/app/ControlPage/cleftbar/cleftbar.component.html
View file @
0bfc57a7
...
@@ -7,9 +7,10 @@
...
@@ -7,9 +7,10 @@
<ul
class=
"filetree"
>
<ul
class=
"filetree"
>
<li
*
ngFor=
"let hostGroup of HostGroups | SearchFilter: q; let i = index "
>
<li
*
ngFor=
"let hostGroup of HostGroups | SearchFilter: q; let i = index "
>
<input
type=
"checkbox"
id=
"hostgroup-{{i}}"
>
<input
type=
"checkbox"
id=
"hostgroup-{{i}}"
>
<label
for=
"hostgroup-{{i}}"
>
{{hostGroup.name}}
</label>
<label
for=
"hostgroup-{{i}}"
matTooltip=
"{{hostGroup.name}}"
[
matTooltipPosition
]="
TooltipPosition
"
>
{{hostGroup.name}}
</label>
<ul
[
ngClass
]="{'
insearch
'
:
q
}"
>
<ul
[
ngClass
]="{'
insearch
'
:
q
}"
>
<li
*
ngFor=
"let host of hostGroup.assets_granted | SearchFilter: q"
(
click
)="
Connect
(
host
)"
(
contextmenu
)="
onRightClick
($
event
)"
>
<li
*
ngFor=
"let host of hostGroup.assets_granted | SearchFilter: q"
(
click
)="
Connect
(
host
)"
(
contextmenu
)="
onRightClick
($
event
)"
matTooltip=
"{{host.hostname}}"
[
matTooltipPosition
]="
TooltipPosition
"
>
<i
class=
"fa"
[
ngClass
]="'
fa-
'+(
host
.
platform
||'
undefined
').
toLowerCase
()"
id=
"fa-{{i}}"
></i>
<i
class=
"fa"
[
ngClass
]="'
fa-
'+(
host
.
platform
||'
undefined
').
toLowerCase
()"
id=
"fa-{{i}}"
></i>
{{host.hostname}}
{{host.hostname}}
</li>
</li>
...
...
src/app/ControlPage/cleftbar/cleftbar.component.ts
View file @
0bfc57a7
...
@@ -47,6 +47,7 @@ export class CleftbarComponent implements OnInit {
...
@@ -47,6 +47,7 @@ export class CleftbarComponent implements OnInit {
event
:
MouseEvent
;
event
:
MouseEvent
;
clientX
=
0
;
clientX
=
0
;
clientY
=
0
;
clientY
=
0
;
TooltipPosition
=
'above'
;
static
Reload
()
{
static
Reload
()
{
}
}
...
...
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