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
5789c3e9
Commit
5789c3e9
authored
Dec 11, 2012
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Layout: Define menu groups
parent
4f072e7d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
15 deletions
+20
-15
slapos/runner/static/css/styles.css
slapos/runner/static/css/styles.css
+4
-4
slapos/runner/static/js/scripts/process.js
slapos/runner/static/js/scripts/process.js
+1
-1
slapos/runner/static/js/scripts/softwareFolder.js
slapos/runner/static/js/scripts/softwareFolder.js
+10
-8
slapos/runner/templates/layout.html
slapos/runner/templates/layout.html
+4
-2
slapos/runner/templates/softwareFolder.html
slapos/runner/templates/softwareFolder.html
+1
-0
No files found.
slapos/runner/static/css/styles.css
View file @
5789c3e9
...
...
@@ -28,7 +28,7 @@ td{
border-right
:
1px
solid
#A8A8A8
;
}
td
.propertie
{
padding-left
:
10px
;
color
:
blue
;
width
:
178px
;}
.slapvalues
{
display
:
block
;
width
:
375
px
;
word-wrap
:
break-word
}
.slapvalues
{
display
:
block
;
width
:
522
px
;
word-wrap
:
break-word
}
td
.first
{
border-left
:
1px
solid
#A8A8A8
;}
th
{
background
:
#2281C1
;
...
...
@@ -122,7 +122,7 @@ overflow-y: scroll;
margin
:
0
;
margin-top
:
1px
;
padding
:
0
;
margin-left
:
4
0px
;
margin-left
:
2
0px
;
}
.space
{
...
...
@@ -163,11 +163,11 @@ overflow-y: scroll;
text-shadow
:
1px
1px
0
#E6EDF2
;
}
.wmenu
ul
li
.sep
{
border-right
:
1px
solid
#c2c2c2
;
min-width
:
22px
;
height
:
34px
}
.wmenu
ul
li
a
{
display
:
block
;
height
:
20px
;
Color
:
#
000
;
Color
:
#
275777
;
/*background: url(../images/sep.png) right center no-repeat;*/
border-right
:
1px
solid
#c2c2c2
;
/*font-weight:bold;*/
...
...
slapos/runner/static/js/scripts/process.js
View file @
5789c3e9
...
...
@@ -181,7 +181,7 @@ function setRunningState(data) {
if
(
$current
!==
undefined
)
{
$current
.
empty
();
$current
.
append
(
"
Run
"
+
processType
.
toLowerCase
());
$current
.
css
(
"
color
"
,
"
#
000
"
);
$current
.
css
(
"
color
"
,
"
#
275777
"
);
$current
=
undefined
;
currentState
=
false
;
$
(
"
#error
"
).
Popup
(
"
Slapgrid finished running your
"
+
processType
+
"
Profile
"
,
{
type
:
'
info
'
,
duration
:
3000
});
...
...
slapos/runner/static/js/scripts/softwareFolder.js
View file @
5789c3e9
...
...
@@ -49,16 +49,16 @@ $(document).ready(function () {
url
:
$SCRIPT_ROOT
+
'
/getFileContent
'
,
data
:
{
file
:
file
},
success
:
function
(
data
)
{
var
name
,
start
;
var
name
,
start
,
path
=
file
;
if
(
data
.
code
===
1
)
{
$
(
"
#edit_info
"
).
empty
();
name
=
file
.
split
(
'
/
'
);
if
(
file
.
length
>
60
)
{
//substring title.
start
=
file
.
length
-
60
;
file
=
"
...
"
+
file
.
substring
(
file
.
indexOf
(
"
/
"
,
(
start
+
1
)));
path
=
"
...
"
+
file
.
substring
(
file
.
indexOf
(
"
/
"
,
(
start
+
1
)));
}
$
(
"
#edit_info
"
).
append
(
"
"
+
file
);
$
(
"
#edit_info
"
).
append
(
"
"
+
path
);
$
(
"
a#option
"
).
show
();
editor
.
getSession
().
setValue
(
data
.
result
);
setEditMode
(
name
[
name
.
length
-
1
]);
...
...
@@ -102,18 +102,17 @@ $(document).ready(function () {
} */
function
switchContent
()
{
var
root
=
projectDir
;
if
(
!
softwareDisplay
)
{
$
(
"
#switch
"
).
empty
();
$
(
"
#switch
"
).
append
(
"
Switch to Profile
"
);
root
=
currentProject
;
$
(
'
#fileTreeFull
'
).
show
();
$
(
'
#fileTree
'
).
hide
();
}
else
{
$
(
"
#switch
"
).
empty
();
$
(
"
#switch
"
).
append
(
"
Switch to Project
"
);
$
(
'
#fileTree
'
).
show
();
$
(
'
#fileTreeFull
'
).
hide
();
}
$
(
'
#fileTree
'
).
fileTree
({
root
:
root
,
script
:
$SCRIPT_ROOT
+
script
,
folderEvent
:
'
click
'
,
expandSpeed
:
750
,
collapseSpeed
:
750
,
multiFolder
:
false
,
selectFolder
:
true
},
function
(
file
)
{
selectFile
(
file
);
},
function
(
file
)
{
openFile
(
file
);
});
$
(
"
#info
"
).
empty
();
$
(
"
#info
"
).
append
(
"
Selection:
"
+
base_path
());
selection
=
""
;
...
...
@@ -199,6 +198,9 @@ $(document).ready(function () {
$
(
'
#fileTree
'
).
fileTree
({
root
:
projectDir
,
script
:
$SCRIPT_ROOT
+
script
,
folderEvent
:
'
click
'
,
expandSpeed
:
750
,
collapseSpeed
:
750
,
multiFolder
:
false
,
selectFolder
:
true
},
function
(
file
)
{
selectFile
(
file
);
},
function
(
file
)
{
openFile
(
file
);
});
$
(
'
#fileTreeFull
'
).
fileTree
({
root
:
currentProject
,
script
:
$SCRIPT_ROOT
+
script
,
folderEvent
:
'
click
'
,
expandSpeed
:
750
,
collapseSpeed
:
750
,
multiFolder
:
false
,
selectFolder
:
true
},
function
(
file
)
{
selectFile
(
file
);
},
function
(
file
)
{
openFile
(
file
);
});
$
(
"
#info
"
).
append
(
"
Selection:
"
+
base_path
());
/*setDetailBox();*/
...
...
slapos/runner/templates/layout.html
View file @
5789c3e9
...
...
@@ -65,14 +65,16 @@
<div
class=
"wmenu"
>
<ul>
<li><a
href=
"{{ url_for('editSoftwareProfile') }}"
>
Profiles
</a></li>
<li><a
href=
"{{ url_for('browseWorkspace') }}"
>
Workspace
</a></li>
<li
class=
'sep'
></li>
<li><a
href=
"{{ url_for('runSoftwareProfile') }}"
id=
"softrun"
>
Run software
</a></li>
<li><a
href=
"{{ url_for('viewSoftwareLog') }}"
>
Software log
</a></li>
<li><a
href=
"{{ url_for('inspectSoftware') }}"
>
SR result
</a></li>
<li
class=
'sep'
></li>
<li><a
href=
"{{ url_for('runInstanceProfile') }}"
id=
"instrun"
>
Run instance
</a></li>
<li><a
href=
"{{ url_for('viewInstanceLog') }}"
>
Instance log
</a></li>
<li><a
href=
"{{ url_for('inspectInstance') }}"
>
Inspect instance
</a></li>
<li><a
id=
"removeIst"
href=
"#"
>
Remove instance
</a></li>
<li><a
href=
"{{ url_for('browseWorkspace') }}"
>
Workspace
</a></li>
<li><a
id=
"removeIst"
href=
"#"
>
Destroy instance
</a></li>
</ul>
</div>
<div
class=
"clear"
></div>
...
...
slapos/runner/templates/softwareFolder.html
View file @
5789c3e9
...
...
@@ -25,6 +25,7 @@
<div
class=
"clear"
></div>
<div
id=
"details_box"
>
<div
id=
"fileTree"
class=
"file_tree_short"
title=
"Double click to edit selected file..."
></div>
<div
id=
"fileTreeFull"
style=
'display:none'
class=
"file_tree_short"
title=
"Double click to edit selected file..."
></div>
<div
class=
"box_software"
>
<input
type=
"text"
name=
"file"
id=
"file"
size=
'12'
value=
"Name here..."
/>
<select
name=
"type"
id=
"type"
>
...
...
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