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
Iliya Manolov
slapos.toolbox
Commits
1c61592a
Commit
1c61592a
authored
Dec 03, 2013
by
Alain Takoudjou
Committed by
Nicolas Wavrant
Feb 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix empty repository status
parent
2976d8f7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
slapos/runner/static/js/scripts/softwareFolder.js
slapos/runner/static/js/scripts/softwareFolder.js
+4
-1
slapos/runner/views.py
slapos/runner/views.py
+5
-3
No files found.
slapos/runner/static/js/scripts/softwareFolder.js
View file @
1c61592a
...
...
@@ -229,7 +229,7 @@ $(document).ready(function () {
node
.
setFocus
();
node
.
setActive
();
if
(
srcElement
.
hasClass
(
'
fancytree-folder
'
)){
menu
.
disableContextMenuItems
(
"
#edit,#editfull,#view,#md5sum
"
);
menu
.
disableContextMenuItems
(
"
#edit,#editfull,#view,#md5sum
,#favorite
"
);
}
else
{
menu
.
disableContextMenuItems
(
"
#nfile,#nfolder,#refresh,#paste
"
);
...
...
@@ -550,6 +550,9 @@ $(document).ready(function () {
}
function
addToFavourite
(
filepath
){
if
(
!
filepath
)
{
return
;
}
var
i
=
favourite_list
.
length
,
filename
=
filepath
.
replace
(
/^.*
(\\
|
\/
|
\:)
/
,
''
);
if
(
i
===
0
){
...
...
slapos/runner/views.py
View file @
1c61592a
...
...
@@ -304,11 +304,13 @@ def getProjectStatus():
#view for current software release files
def
editCurrentProject
():
project
=
os
.
path
.
join
(
app
.
config
[
'etc_dir'
],
".project"
)
if
os
.
path
.
exists
(
project
):
projectList
=
listFolder
(
app
.
config
,
'workspace'
)
if
os
.
path
.
exists
(
project
)
and
projectList
:
return
render_template
(
'softwareFolder.html'
,
workDir
=
'workspace'
,
project
=
open
(
project
).
read
(),
projectList
=
listFolder
(
app
.
config
,
'workspace'
))
return
redirect
(
url_for
(
'configRepo'
))
projectList
=
projectList
)
flash
(
'Please clone slapos repository and then, <br/>open or create a software to start with your project!!'
)
return
redirect
(
url_for
(
'manageRepository'
))
#create file or directory
...
...
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