Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Justin
slapos.toolbox
Commits
b2c4d3fa
Commit
b2c4d3fa
authored
Feb 29, 2012
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add develop location of cloned git repository
parent
7a9ce4ff
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
142 additions
and
7 deletions
+142
-7
slapos/runner/static/js/jquery/jqueryToolTip.js
slapos/runner/static/js/jquery/jqueryToolTip.js
+46
-0
slapos/runner/templates/softwareFolder.html
slapos/runner/templates/softwareFolder.html
+34
-4
slapos/runner/templates/updateInstanceProfile.html
slapos/runner/templates/updateInstanceProfile.html
+31
-2
slapos/runner/templates/updateSoftwareProfile.html
slapos/runner/templates/updateSoftwareProfile.html
+31
-1
No files found.
slapos/runner/static/js/jquery/jqueryToolTip.js
0 → 100644
View file @
b2c4d3fa
$
(
function
()
{
var
distance
=
10
;
var
time
=
250
;
var
hideDelay
=
200
;
var
hideDelayTimer
=
null
;
var
beingShown
=
false
;
var
shown
=
false
;
$
(
'
.popup
'
).
css
(
'
opacity
'
,
0
);
$
(
'
a[rel=tooltip], .popup
'
).
mouseover
(
function
()
{
var
height
=
$
(
this
).
height
();
var
top
=
$
(
this
).
offset
().
top
+
height
+
5
;
var
left
=
$
(
this
).
offset
().
left
-
(
$
(
this
).
width
()
/
2
);
if
(
hideDelayTimer
)
clearTimeout
(
hideDelayTimer
);
if
(
beingShown
||
shown
)
{
return
;
}
else
{
// reset position of info box
beingShown
=
true
;
$
(
'
.popup
'
).
css
({
top
:
top
,
left
:
left
,
display
:
'
block
'
}).
animate
({
top
:
'
-=
'
+
distance
+
'
px
'
,
opacity
:
1
},
time
,
'
swing
'
,
function
()
{
beingShown
=
false
;
shown
=
true
;
});
}
return
false
;
}).
mouseout
(
function
()
{
if
(
hideDelayTimer
)
clearTimeout
(
hideDelayTimer
);
hideDelayTimer
=
setTimeout
(
function
()
{
hideDelayTimer
=
null
;
$
(
'
.popup
'
).
animate
({
top
:
'
-=
'
+
distance
+
'
px
'
,
opacity
:
0
},
time
,
'
swing
'
,
function
()
{
shown
=
false
;
$
(
'
.popup
'
).
css
(
'
display
'
,
'
none
'
);
});
},
hideDelay
)
return
false
;
});
});
\ No newline at end of file
slapos/runner/templates/softwareFolder.html
View file @
b2c4d3fa
...
...
@@ -32,12 +32,13 @@
<br/><br/>
<a
href=
"#"
id=
"switch"
class=
"lshare"
>
Switch to Project files
</a>
<a
href=
""
id=
"clearselect"
class=
"lshare"
>
Clear selection
</a><br/><br/>
<div
id=
"file_info"
class=
"file_info"
><span
id=
"info"
>
Select
parent directory or nothing for root
...
</span></div>
<div
id=
"file_info"
class=
"file_info"
><span
id=
"info"
>
Select
directory or nothing for root directory
...
</span></div>
</div>
<div
class=
"clear"
></div>
</div>
<div
class=
"clear"
></div>
<div
id=
"code"
style=
"margin-top:10px"
>
<h2
id=
"edit_info"
class=
'title'
>
No file selected
</h2>
<h2
class=
'title'
><span
id=
"edit_info"
>
No file selected
</span>
<a
style=
"display:none"
id=
'option'
href=
'#'
rel=
'tooltip'
title=
'Show more option'
>
[More]
</a>
</h2>
<div
class=
'md5sum'
id=
'md5sum'
></div>
<div
class=
"main_content"
>
<pre
id=
"editor"
>
...
...
@@ -49,4 +50,33 @@
</div>
</form>
<div
class=
"popup"
>
<table
id=
"dpop"
cellpadding=
"0"
border=
"0"
>
<tbody><tr>
<td
id=
"topleft"
class=
"corner"
></td>
<td
class=
"top"
><img
width=
"30"
height=
"29"
alt=
""
src=
"{{ url_for('static', filename='images/bubble-tail2.png') }}"
/></td>
<td
id=
"topright"
class=
"corner"
></td>
</tr><tr>
<td
class=
"left"
></td>
<td><div
class=
"popup-contents"
>
<a
id=
'getmd5'
href=
"#"
>
Get or Update md5sum
</a>
<br/>
Add Project to Develop
<br/>
<div
style=
"margin-top:3px;border-bottom: 1px dashed #666666; heigth:1px"
></div>
<ul
id=
"plist"
>
{% for name in projectList%}
<li><input
type=
"checkbox"
name=
"develop"
value=
"{{name}}"
id=
"{{name}}"
>
<label
for=
"{{name}}"
>
{{name}}
</label></li>
{% endfor %}
</ul>
<br/>
<a
href=
"#"
id=
"adddevelop"
class=
"lshare"
>
Add to profile
</a>
</div></td>
<td
class=
"right"
></td>
</tr><tr>
<td
class=
"corner"
id=
"bottomleft"
></td>
<td
class=
"bottom"
valign=
"left"
></td>
<td
id=
"bottomright"
class=
"corner"
></td>
</tr>
</tbody></table>
</div>
{% endblock %}
slapos/runner/templates/updateInstanceProfile.html
View file @
b2c4d3fa
...
...
@@ -10,17 +10,46 @@
{% block body %}
<form
method=
post
class=
add-entry
>
<dl>
<dd><h2>
Edit instance profile
<a
href=
'#'
id=
'getmd5'
title=
'Show or Update md5sum value'
>
[md5
]
</a>
:
</h2></dd>
<dd><h2>
Edit instance profile
<a
href=
'#'
rel=
"tooltip"
title=
'Show more option'
>
[More
]
</a>
:
</h2></dd>
<dd><div
class=
'md5sum'
id=
'md5sum'
></div></dd>
<dd>
<div
class=
"main_content"
>
<pre
id=
"editor"
></pre>
<input
type=
"hidden"
name=
"profile"
id=
"profile"
value=
"{{ profile|safe }}"
/>
<input
type=
"hidden"
name=
"workdir"
id=
"workdir"
value=
"{{workDir}}"
/>
</div>
<input
type=
"hidden"
name=
content
id=
"editor_content"
/>
</dd>
<dd><input
type=
submit
value=
Update
id=
"save"
class=
"button"
></dd>
</dl>
</form>
<div
class=
"popup"
>
<table
id=
"dpop"
cellpadding=
"0"
border=
"0"
>
<tbody><tr>
<td
id=
"topleft"
class=
"corner"
></td>
<td
class=
"top"
><img
width=
"30"
height=
"29"
alt=
""
src=
"{{ url_for('static', filename='images/bubble-tail2.png') }}"
/></td>
<td
id=
"topright"
class=
"corner"
></td>
</tr><tr>
<td
class=
"left"
></td>
<td><div
class=
"popup-contents"
>
<a
id=
'getmd5'
href=
"#"
>
Get or Update md5sum
</a>
<br/>
Add Project to Develop
<br/>
<div
style=
"margin-top:3px;border-bottom: 1px dashed #666666; heigth:1px"
></div>
<ul
id=
"plist"
>
{% for name in projectList%}
<li><input
type=
"checkbox"
name=
"develop"
value=
"{{name}}"
id=
"{{name}}"
>
<label
for=
"{{name}}"
>
{{name}}
</label></li>
{% endfor %}
</ul>
<br/>
<a
href=
"#"
id=
"adddevelop"
class=
"lshare"
>
Add to profile
</a>
</div></td>
<td
class=
"right"
></td>
</tr><tr>
<td
class=
"corner"
id=
"bottomleft"
></td>
<td
class=
"bottom"
valign=
"left"
></td>
<td
id=
"bottomright"
class=
"corner"
></td>
</tr>
</tbody></table>
</div>
{% endblock %}
slapos/runner/templates/updateSoftwareProfile.html
View file @
b2c4d3fa
...
...
@@ -10,16 +10,46 @@
{% block body %}
<form
method=
post
class=
add-entry
>
<dl>
<dd><h2>
Edit software profile
<a
href=
'#'
id=
'getmd5'
title=
'Show or Update md5sum value'
>
[md5
]
</a>
:
</h2></dd>
<dd><h2>
Edit software profile
<a
href=
'#'
rel=
"tooltip"
title=
'Show more option'
>
[More
]
</a>
:
</h2></dd>
<dd><div
class=
'md5sum'
id=
'md5sum'
></div></dd>
<dd>
<div
class=
"main_content"
>
<pre
id=
"editor"
></pre>
</div>
<input
type=
"hidden"
name=
"profile"
id=
"profile"
value=
"{{ profile|safe }}"
/>
<input
type=
"hidden"
name=
"workdir"
id=
"workdir"
value=
"{{workDir}}"
/>
</dd>
<dd><input
type=
submit
value=
Update
id=
"save"
class=
"button"
></dd>
</dl>
</form>
<div
class=
"popup"
>
<table
id=
"dpop"
cellpadding=
"0"
border=
"0"
>
<tbody><tr>
<td
id=
"topleft"
class=
"corner"
></td>
<td
class=
"top"
><img
width=
"30"
height=
"29"
alt=
""
src=
"{{ url_for('static', filename='images/bubble-tail2.png') }}"
/></td>
<td
id=
"topright"
class=
"corner"
></td>
</tr><tr>
<td
class=
"left"
></td>
<td><div
class=
"popup-contents"
>
<a
id=
'getmd5'
href=
"#"
>
Get or Update md5sum
</a>
<br/>
Add Project to Develop
<br/>
<div
style=
"margin-top:3px;border-bottom: 1px dashed #666666; heigth:1px"
></div>
<ul
id=
"plist"
>
{% for name in projectList%}
<li><input
type=
"checkbox"
name=
"develop"
value=
"{{name}}"
id=
"{{name}}"
>
<label
for=
"{{name}}"
>
{{name}}
</label></li>
{% endfor %}
</ul>
<br/>
<a
href=
"#"
id=
"adddevelop"
class=
"lshare"
>
Add to profile
</a>
</div></td>
<td
class=
"right"
></td>
</tr><tr>
<td
class=
"corner"
id=
"bottomleft"
></td>
<td
class=
"bottom"
valign=
"left"
></td>
<td
id=
"bottomright"
class=
"corner"
></td>
</tr>
</tbody></table>
</div>
{% endblock %}
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