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
Guillaume Hervier
slapos.toolbox
Commits
8bab04ab
Commit
8bab04ab
authored
Nov 15, 2012
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Slaprunner Layout
parent
534a0f22
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
11 deletions
+13
-11
slapos/runner/fileBrowser.py
slapos/runner/fileBrowser.py
+3
-3
slapos/runner/static/css/styles.css
slapos/runner/static/css/styles.css
+4
-3
slapos/runner/static/js/scripts/inspectInstance.js
slapos/runner/static/js/scripts/inspectInstance.js
+3
-0
slapos/runner/templates/instanceInspect.html
slapos/runner/templates/instanceInspect.html
+1
-2
slapos/runner/templates/layout.html
slapos/runner/templates/layout.html
+1
-0
slapos/runner/templates/updateSoftwareProfile.html
slapos/runner/templates/updateSoftwareProfile.html
+1
-3
No files found.
slapos/runner/fileBrowser.py
View file @
8bab04ab
...
@@ -212,7 +212,7 @@ class FileBrowser(object):
...
@@ -212,7 +212,7 @@ class FileBrowser(object):
return '{result:
\
'
1
\
'
}'
return '{result:
\
'
1
\
'
}'
raise NameError('NOT ALLOWED OPERATION : File or directory already exist')
raise NameError('NOT ALLOWED OPERATION : File or directory already exist')
def readFile(self, dir, filename, truncate=
0
):
def readFile(self, dir, filename, truncate=
False
):
"""Read file dir/filename and return content"""
"""Read file dir/filename and return content"""
realfile = realpath(self.config, os.path.join(urllib.unquote(dir),
realfile = realpath(self.config, os.path.join(urllib.unquote(dir),
urllib.unquote(filename)))
urllib.unquote(filename)))
...
@@ -220,7 +220,7 @@ class FileBrowser(object):
...
@@ -220,7 +220,7 @@ class FileBrowser(object):
raise NameError('Could not load directory %s: Permission denied' % dir)
raise NameError('Could not load directory %s: Permission denied' % dir)
if not isText(realfile):
if not isText(realfile):
return "
FILE
ERROR
:
Cannot
display
binary
file
,
please
open
a
text
file
only
!
"
return "
FILE
ERROR
:
Cannot
display
binary
file
,
please
open
a
text
file
only
!
"
if
truncate == 0
:
if
not truncate
:
return open(realfile, 'r').read()
return open(realfile, 'r').read()
else:
else:
tail(open(realfile, 'r'), 0)
return
tail(open(realfile, 'r'), 0)
slapos/runner/static/css/styles.css
View file @
8bab04ab
...
@@ -166,14 +166,14 @@ overflow-y: scroll;
...
@@ -166,14 +166,14 @@ overflow-y: scroll;
.wmenu
ul
li
a
{
.wmenu
ul
li
a
{
display
:
block
;
display
:
block
;
height
:
18
px
;
height
:
20
px
;
Color
:
#000
;
Color
:
#000
;
/*background: url(../images/sep.png) right center no-repeat;*/
/*background: url(../images/sep.png) right center no-repeat;*/
border-right
:
1px
solid
#c2c2c2
;
border-right
:
1px
solid
#c2c2c2
;
/*font-weight:bold;*/
/*font-weight:bold;*/
font-size
:
15px
;
font-size
:
15px
;
text-decoration
:
none
;
text-decoration
:
none
;
padding
:
8px
10px
8
px
10px
;
padding
:
7px
10px
7
px
10px
;
}
}
.wmenu
ul
li
:last-child
a
{
border
:
none
}
.wmenu
ul
li
:last-child
a
{
border
:
none
}
...
@@ -514,6 +514,7 @@ h2.hight:hover{
...
@@ -514,6 +514,7 @@ h2.hight:hover{
.log_btn
{
border
:
1px
solid
#678dad
;
border-top
:
none
;
height
:
22px
;
width
:
654px
;
margin
:
0
40px
10px
40px
;
.log_btn
{
border
:
1px
solid
#678dad
;
border-top
:
none
;
height
:
22px
;
width
:
654px
;
margin
:
0
40px
10px
40px
;
padding
:
4px
10px
4px
10px
;
font-size
:
16px
;
color
:
#4c6172
;}
padding
:
4px
10px
4px
10px
;
font-size
:
16px
;
color
:
#4c6172
;}
.log
p
{
white-space
:
pre-wrap
;
width
:
100%
}
.log
p
{
white-space
:
pre-wrap
;
width
:
100%
}
.log
p
.info
{
white-space
:
pre-wrap
;
width
:
98%
;
font-size
:
15px
;
margin
:
5px
;
color
:
red
;}
.waitting
{
.waitting
{
margin-left
:
10px
;
margin-left
:
10px
;
...
@@ -699,7 +700,7 @@ div.sep{display:block; height:7px;}
...
@@ -699,7 +700,7 @@ div.sep{display:block; height:7px;}
.popup
td
.top
img
{
display
:
block
;
}
.popup
td
.top
img
{
display
:
block
;
}
.popup
td
#bottomright
{
background-image
:
url(../images/bubble-1.png)
;
}
.popup
td
#bottomright
{
background-image
:
url(../images/bubble-1.png)
;
}
.popup-contents
{
background
:
#fff
;
color
:
#666666
;}
.popup-contents
{
background
:
#fff
;
color
:
#666666
;}
.popup
a
{
display
:
block
;
font-weight
:
bold
;
color
:
#4DA0C6
;
padding-left
:
5px
;}
.popup
a
{
display
:
block
;
font-weight
:
bold
;
color
:
#4DA0C6
;
padding-left
:
5px
;
padding-bottom
:
5px
;
}
.popup
a
:hover
{
color
:
#666666
;}
.popup
a
:hover
{
color
:
#666666
;}
.popup
ul
{
margin
:
0
;
margin-bottom
:
10px
;
padding
:
0
;
list-style
:
none
;}
.popup
ul
{
margin
:
0
;
margin-bottom
:
10px
;
padding
:
0
;
list-style
:
none
;}
.popup
li
{
border-bottom
:
1px
dashed
#666666
;
padding
:
0
;}
.popup
li
{
border-bottom
:
1px
dashed
#666666
;
padding
:
0
;}
...
...
slapos/runner/static/js/scripts/inspectInstance.js
View file @
8bab04ab
...
@@ -212,6 +212,9 @@ $(document).ready(function () {
...
@@ -212,6 +212,9 @@ $(document).ready(function () {
url
:
$SCRIPT_ROOT
+
'
/getParameterXml/xml
'
,
url
:
$SCRIPT_ROOT
+
'
/getParameterXml/xml
'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
===
1
)
{
if
(
data
.
code
===
1
)
{
$
(
"
#loadxml
"
).
unbind
(
'
click
'
);
$
.
colorbox
.
remove
();
$
(
"
#inline_instance
"
).
empty
();
$
(
"
#inline_instance
"
).
html
(
content
);
$
(
"
#inline_instance
"
).
html
(
content
);
setupEditor
(
true
);
setupEditor
(
true
);
$
(
"
a#inlineInstance
"
).
colorbox
(
$
(
"
a#inlineInstance
"
).
colorbox
(
...
...
slapos/runner/templates/instanceInspect.html
View file @
8bab04ab
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
</h2>
</h2>
<div
class=
"clear"
></div><br/>
<div
class=
"clear"
></div><br/>
<div
id=
"bcontent{{item[0]}}"
>
<div
id=
"bcontent{{item[0]}}"
>
<table
cellpadding=
"0"
cellspacing=
"0"
width=
"
577
"
>
<table
cellpadding=
"0"
cellspacing=
"0"
width=
"
100%
"
>
<tr>
<tr>
<th>
Parameter Name
</th><th>
Parameter Value
</th>
<th>
Parameter Name
</th><th>
Parameter Value
</th>
</tr>
</tr>
...
@@ -143,6 +143,5 @@
...
@@ -143,6 +143,5 @@
</div>
</div>
</div>
</div>
{{instance}}
{% endblock %}
{% endblock %}
slapos/runner/templates/layout.html
View file @
8bab04ab
...
@@ -124,6 +124,7 @@
...
@@ -124,6 +124,7 @@
<li><a
href=
"{{ url_for('configRepo')}}"
>
Clone your repository
</a></li>
<li><a
href=
"{{ url_for('configRepo')}}"
>
Clone your repository
</a></li>
<li><a
href=
"{{ url_for('openProject', method='open')}}"
>
Open Software Release
</a></li>
<li><a
href=
"{{ url_for('openProject', method='open')}}"
>
Open Software Release
</a></li>
<li><a
href=
"{{ url_for('openProject', method='new')}}"
>
Create Software Release
</a></li>
<li><a
href=
"{{ url_for('openProject', method='new')}}"
>
Create Software Release
</a></li>
<li
style=
"heigth:1px"
></li>
</ul>
</ul>
</div>
</div>
</body>
</body>
...
...
slapos/runner/templates/updateSoftwareProfile.html
View file @
8bab04ab
...
@@ -23,10 +23,8 @@
...
@@ -23,10 +23,8 @@
</dl>
</dl>
</form>
</form>
<div
id=
"tooltip-editOption"
style=
"display:none"
>
<div
id=
"tooltip-editOption"
style=
"display:none"
>
<span
class=
"list"
>
MD5 SUM for the current file
</span>
<span
class=
"list"
>
Current profile options
</span>
<a
id=
'getmd5'
href=
"#"
>
Get or Update md5sum
</a>
<a
id=
'getmd5'
href=
"#"
>
Get or Update md5sum
</a>
<div
class=
"sep"
></div>
<span
class=
"list"
>
Curent software release
</span>
<a
href=
"{{ url_for('editCurrentProject')}}"
>
Edit software release files
</a>
<a
href=
"{{ url_for('editCurrentProject')}}"
>
Edit software release files
</a>
<div
class=
"sep"
></div>
<div
class=
"sep"
></div>
<span
class=
"list"
>
Add Project to Develop
</span>
<span
class=
"list"
>
Add Project to Develop
</span>
...
...
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