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
Lu Xu
slapos.toolbox
Commits
3ddd7866
Commit
3ddd7866
authored
Nov 05, 2013
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keep in mind last opened file and manage favourites files
parent
54aa7f25
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
150 additions
and
71 deletions
+150
-71
slapos/runner/static/images/list2_down.png
slapos/runner/static/images/list2_down.png
+0
-0
slapos/runner/static/js/scripts/softwareFolder.js
slapos/runner/static/js/scripts/softwareFolder.js
+122
-56
slapos/runner/templates/softwareFolder.html
slapos/runner/templates/softwareFolder.html
+25
-12
slapos/runner/views.py
slapos/runner/views.py
+3
-3
No files found.
slapos/runner/static/images/list2_down.png
0 → 100644
View file @
3ddd7866
1.41 KB
slapos/runner/static/js/scripts/softwareFolder.js
View file @
3ddd7866
This diff is collapsed.
Click to expand it.
slapos/runner/templates/softwareFolder.html
View file @
3ddd7866
...
...
@@ -43,9 +43,10 @@
<ul
class=
'box_header'
>
<li
id=
"switch"
><span
class=
"swith_btn"
title=
"Switch between differents file source"
>
This project
</span></li>
<li
id=
"save"
><span
class=
"save_btn"
title=
"Save current file. Hint: Use Ctrl+S"
>
Save
</span></li>
<li
id=
"flist"
><span
class=
"flist_btn"
id=
"filelist"
title=
"Recently opened files and favourites"
rel=
'tooltip'
>
</span></li>
<li>
<h2>
<a
style=
"display:none"
id=
'option'
href=
'#'
rel=
'tooltip'
title=
'Show more option'
>
[
Current file
]
</a><span
id=
"edit_info"
>
No file in editor
</span>
<a
style=
"display:none"
id=
'option'
href=
'#'
rel=
'tooltip'
title=
'Show more option'
>
[
Menu
]
</a><span
id=
"edit_info"
>
No file in editor
</span>
<span
id=
"edit_status"
></span>
</h2>
</li>
...
...
@@ -66,7 +67,7 @@
<pre
id=
"editor"
>
</pre>
</div>
</div>
<!--<input type=submit value="Save" id="save" class="button">-->
</div>
...
...
@@ -74,18 +75,30 @@
<div
class=
"clear"
></div>
<div
id=
"file_info"
class=
"file_info"
><span
id=
"info"
></span></div>
</form>
<div
id=
"tooltip-option"
style=
"display:none"
>
<span
class=
"list first-list"
>
MD5 SUM for the current file
</span>
<a
id=
'getmd5'
href=
"#"
>
Get or Update md5sum
</a>
<div
class=
"sep"
></div>
<span
class=
"list"
>
Add project development
</span>
<ul
id=
"plist"
>
{% for name in projectList%}
<li><input
type=
"checkbox"
name=
"develop"
value=
"{{name}}"
id=
"{{name}}"
>
<label>
{{name}}
</label></li>
{% endfor %}
<span
class=
"list first-list"
>
Current file Menu
</span>
<a
id=
'getmd5'
href=
"#"
>
Get or Update md5sum
</a>
<a
id=
'addflist'
href=
"#"
>
Add to favourites
</a>
<div
class=
"sep"
></div>
<span
class=
"list"
>
Add project development
</span>
<ul
id=
"plist"
>
{% for name in projectList%}
<li><input
type=
"checkbox"
name=
"develop"
value=
"{{name}}"
id=
"{{name}}"
>
<label>
{{name}}
</label></li>
{% endfor %}
</ul>
<a
href=
"#"
id=
"adddevelop"
class=
"lshare"
>
Add to profile
</a>
</div>
<div
id=
"tooltip-filelist"
style=
"display:none"
>
<div
style=
"min-width: 190px; padding-bottom:10px;"
>
<span
class=
"list first-list"
>
All your favourite files
</span>
<ul
class=
"inline"
>
<li>
Your favourites files list is
<br/>
empty for the moment!
</li>
</ul>
<a
href=
"#"
id=
"adddevelop"
class=
"lshare"
>
Add to profile
</a
>
</div
>
</div>
<!-- This contains the hidden content for inline calls -->
...
...
slapos/runner/views.py
View file @
3ddd7866
...
...
@@ -129,7 +129,7 @@ def editSoftwareProfile():
if
profile
==
""
:
flash
(
'Error: can not open profile, please select your project first'
)
return
render_template
(
'updateSoftwareProfile.html'
,
workDir
=
'workspace'
,
profile
=
profile
,
projectList
=
getProjectList
(
app
.
config
[
'workspace'
]
))
profile
=
profile
,
projectList
=
listFolder
(
app
.
config
,
'workspace'
))
@
login_required
()
...
...
@@ -177,7 +177,7 @@ def editInstanceProfile():
if
profile
==
""
:
flash
(
'Error: can not open instance profile for this Software Release'
)
return
render_template
(
'updateInstanceProfile.html'
,
workDir
=
'workspace'
,
profile
=
profile
,
projectList
=
getProjectList
(
app
.
config
[
'workspace'
]
))
profile
=
profile
,
projectList
=
listFolder
(
app
.
config
,
'workspace'
))
# get status of all computer partitions and process state
...
...
@@ -689,7 +689,7 @@ def fileBrowser():
def
editFile
():
return
render_template
(
'editFile.html'
,
workDir
=
'workspace'
,
profile
=
urllib
.
unquote
(
request
.
args
.
get
(
'profile'
,
''
)),
projectList
=
getProjectList
(
app
.
config
[
'workspace'
]
),
projectList
=
listFolder
(
app
.
config
,
'workspace'
),
filename
=
urllib
.
unquote
(
request
.
args
.
get
(
'filename'
,
''
)))
...
...
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