Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
b6169371
Commit
b6169371
authored
Oct 11, 2011
by
Kostas Papadimitriou
Browse files
Allow user to copy to clipboard ssh command
parent
f545e22a
Changes
3
Hide whitespace changes
Inline
Side-by-side
ui/static/main.css
View file @
b6169371
...
...
@@ -4562,7 +4562,7 @@ table.list-machines .wave {
display
:
none
;
}
.overlay
.copy-content
.clip-copy
{
.overlay
.copy-content
.clip-copy
{
right
:
10px
;
top
:
8px
;
border
:
1px
solid
#fff
;
...
...
ui/static/snf/js/ui/web/ui_connect_view.js
View file @
b6169371
...
...
@@ -37,6 +37,11 @@
this
.
subinfo
=
this
.
info
.
find
(
"
.subinfo
"
);
},
beforeOpen
:
function
()
{
this
.
clip
=
new
snf
.
util
.
ClipHelper
();
this
.
connect
.
parent
().
append
(
this
.
clip
.
cont
);
},
handle_success
:
function
(
data
)
{
this
.
error
.
hide
();
this
.
info
.
show
();
...
...
@@ -49,7 +54,13 @@
this
.
subinfo
.
html
(
data
.
subinfo
).
show
();
if
(
!
data
.
subinfo
)
{
this
.
subinfo
.
hide
()
};
if
(
data
.
ssh
)
{
this
.
clip
.
cont
.
show
();
this
.
clip
.
setText
(
data
.
link
.
title
);
}
else
{
this
.
clip
.
cont
.
hide
();
}
},
handle_error
:
function
()
{
...
...
ui/templates/partials/vm_connect.html
View file @
b6169371
...
...
@@ -7,7 +7,7 @@
<div
class=
"description"
>
<p></p>
</div>
<div
class=
"connect"
>
<div
class=
"connect
copy-content
"
>
<p></p>
</div>
<div
class=
"subinfo description"
>
...
...
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