Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0765a6e5
authored
Mar 28, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: trim vm names only if necessary
fixes
#102
parent
bc677046
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
one/static/style/box.less
+19
-3
one/templates/box/vm/summary.html
+1
-1
No files found.
one/static/style/box.less
View file @
0765a6e5
...
...
@@ -168,9 +168,16 @@
.actions {
display: block;
}
.name .details {
display: inline;
border: none;
.name {
width: calc(~"100% - 200px");
span {
width: calc(~"60% + 95px");
max-width: calc(~"100% - 95px");
}
.details {
display: block;
border: none;
}
}
}
...
...
@@ -186,11 +193,20 @@
z-index: 2;
position: relative;
height: 24px;
width: calc(~"100% - 90px");
span {
float: left;
text-overflow: ellipsis;
display: block;
white-space: nowrap;
overflow: hidden;
}
&.filetype-new-folder {
float: left;
}
.details {
display: none;
float: right;
}
}
.status {
...
...
one/templates/box/vm/summary.html
View file @
0765a6e5
...
...
@@ -11,7 +11,7 @@
{% block name %}
<div
class=
"name {% if vm.state == 'ACTIVE' %}vm-on{% else %}vm-off{% endif %}"
>
<span
id=
"vm-{{vm.id}}-name"
>
{{vm.name
|truncatechars:20
}}
</span>
<span
id=
"vm-{{vm.id}}-name"
>
{{vm.name}}
</span>
<small
id=
"vm-{{vm.id}}-name-details"
class=
"details"
>
(
<a
href=
"{{ vm.get_absolute_url }}"
title=
"{{vm.name}}"
>
{% trans "More details" %}
</a>
)
</small>
...
...
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