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
Hardik Juneja
slapos.toolbox
Commits
e7521673
Commit
e7521673
authored
Sep 30, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New icon-link to go to the shell
parent
229798c5
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
1 deletion
+13
-1
slapos/runner/static/css/styles.css
slapos/runner/static/css/styles.css
+2
-0
slapos/runner/static/images/terminal.png
slapos/runner/static/images/terminal.png
+0
-0
slapos/runner/templates/layout.html
slapos/runner/templates/layout.html
+2
-1
slapos/runner/templates/shell.html
slapos/runner/templates/shell.html
+5
-0
slapos/runner/views.py
slapos/runner/views.py
+4
-0
No files found.
slapos/runner/static/css/styles.css
View file @
e7521673
...
...
@@ -732,3 +732,5 @@ padding:10px; font-size:14px; color:#03406A}
.login-input
{
width
:
220px
;}
.information
{
display
:
block
;
float
:
left
;
height
:
16px
;
margin-top
:
10px
;
margin-left
:
10px
;
font-weight
:
bold
}
.account
{
margin-left
:
60px
;}
/* ********************/
#shellinabox
{
width
:
100%
;
min-height
:
530px
;}
slapos/runner/static/images/terminal.png
0 → 100644
View file @
e7521673
1.07 KB
slapos/runner/templates/layout.html
View file @
e7521673
...
...
@@ -58,8 +58,9 @@
<div
class=
"line"
></div>
<a
href=
"{{ url_for('manageProject') }}"
style=
"float:left"
title=
"Manage Your repositories"
><img
alt=
""
src=
"{{ url_for('static', filename='images/manage_repo-little.png') }}"
/></a>
<div
class=
"line"
></div>
<a
href=
"{{ url_for('dologout') }}"
style=
"float:left"
title=
"Close your session"
><img
alt=
""
src=
"{{ url_for('static', filename='images/logout
.png') }}"
/></a>
<a
href=
"{{ url_for('shell') }}"
style=
"float:left"
title=
"Use the shell"
><img
alt=
""
src=
"{{ url_for('static', filename='images/terminal
.png') }}"
/></a>
<div
class=
"line"
></div>
<a
href=
"{{ url_for('dologout') }}"
style=
"float:left"
title=
"Close your session"
><img
alt=
""
src=
"{{ url_for('static', filename='images/logout.png') }}"
/></a>
<h2
class=
"info"
>
{% block title %}{% endblock %} - {{session.title}}
</h2>
<div
class=
"run"
><span
id=
"running"
style=
"display:none"
><img
alt=
""
src=
"{{ url_for('static', filename='images/ajax_roller.gif') }}"
height=
'26'
title=
"slapgrid is currently running"
/></span></div>
...
...
slapos/runner/templates/shell.html
0 → 100644
View file @
e7521673
{% extends "layout.html" %}
{% block title %} Shell {% endblock %}
{% block body %}
<iframe
id=
"shellinabox"
src=
"/shellinabox"
></iframe>
{% endblock %}
slapos/runner/views.py
View file @
e7521673
...
...
@@ -701,6 +701,9 @@ def editFile():
projectList
=
getProjectList
(
app
.
config
[
'workspace'
]),
filename
=
urllib
.
unquote
(
request
.
args
.
get
(
'filename'
,
''
)))
@
login_required
()
def
shell
():
return
render_template
(
'shell.html'
)
#Setup List of URLs
app
.
add_url_rule
(
'/'
,
'home'
,
home
)
...
...
@@ -783,3 +786,4 @@ app.add_url_rule("/updateAccount", 'updateAccount', updateAccount,
app
.
add_url_rule
(
"/fileBrowser"
,
'fileBrowser'
,
fileBrowser
,
methods
=
[
'GET'
,
'POST'
])
app
.
add_url_rule
(
"/editFile"
,
'editFile'
,
editFile
,
methods
=
[
'GET'
])
app
.
add_url_rule
(
'/shell'
,
'shell'
,
shell
)
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