Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
b75411c6
Commit
b75411c6
authored
Jun 15, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add commands path and route
parent
eaccb988
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
1 deletion
+11
-1
debomatic-webui/debomatic-webui
debomatic-webui/debomatic-webui
+2
-0
debomatic-webui/lib/config.js
debomatic-webui/lib/config.js
+1
-0
debomatic-webui/routes/index.js
debomatic-webui/routes/index.js
+4
-0
debomatic-webui/views/header.ejs
debomatic-webui/views/header.ejs
+4
-1
No files found.
debomatic-webui/debomatic-webui
View file @
b75411c6
...
@@ -45,6 +45,8 @@ app.get('/', routes.index);
...
@@ -45,6 +45,8 @@ app.get('/', routes.index);
app.get(config.routes.distribution, routes.distribution);
app.get(config.routes.distribution, routes.distribution);
if (config.routes.preferences)
if (config.routes.preferences)
app.get(config.routes.preferences, routes.preferences);
app.get(config.routes.preferences, routes.preferences);
if (config.routes.commands)
app.get(config.routes.commands, routes.commands);
var server = http.createServer(app),
var server = http.createServer(app),
io = require('socket.io').listen(server, config.socket);
io = require('socket.io').listen(server, config.socket);
...
...
debomatic-webui/lib/config.js
View file @
b75411c6
...
@@ -28,6 +28,7 @@ config.routes = {};
...
@@ -28,6 +28,7 @@ config.routes = {};
config
.
routes
.
debomatic
=
'
/debomatic
'
;
config
.
routes
.
debomatic
=
'
/debomatic
'
;
config
.
routes
.
distribution
=
'
/distribution
'
;
config
.
routes
.
distribution
=
'
/distribution
'
;
config
.
routes
.
preferences
=
'
/preferences
'
;
config
.
routes
.
preferences
=
'
/preferences
'
;
config
.
routes
.
commands
=
'
/commands
'
;
config
.
web
=
{};
config
.
web
=
{};
config
.
web
.
title
=
'
Deb-o-Matic web.ui
'
;
config
.
web
.
title
=
'
Deb-o-Matic web.ui
'
;
...
...
debomatic-webui/routes/index.js
View file @
b75411c6
...
@@ -13,3 +13,7 @@ exports.distribution = function (req, res) {
...
@@ -13,3 +13,7 @@ exports.distribution = function (req, res) {
exports
.
preferences
=
function
(
req
,
res
)
{
exports
.
preferences
=
function
(
req
,
res
)
{
res
.
render
(
'
preferences
'
,
config
);
res
.
render
(
'
preferences
'
,
config
);
};
};
exports
.
commands
=
function
(
req
,
res
)
{
res
.
render
(
'
commands
'
,
config
);
};
debomatic-webui/views/header.ejs
View file @
b75411c6
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<link
rel=
"stylesheet"
href=
"/external_libs/bootstrap-3.1.1-dist/css/bootstrap-theme.min.css"
>
<link
rel=
"stylesheet"
href=
"/external_libs/bootstrap-3.1.1-dist/css/bootstrap-theme.min.css"
>
<link
rel=
"stylesheet"
href=
"/stylesheets/style.css?<%= version %>"
>
<link
rel=
"stylesheet"
href=
"/stylesheets/style.css?<%= version %>"
>
</head>
</head>
<body>
<body>
<div
id=
"wrapper"
class=
"container-fluid"
>
<div
id=
"wrapper"
class=
"container-fluid"
>
...
@@ -27,6 +27,9 @@
...
@@ -27,6 +27,9 @@
</div>
</div>
<div
id=
"pages"
>
<div
id=
"pages"
>
<ul
class=
"nav navbar-nav pull-right"
>
<ul
class=
"nav navbar-nav pull-right"
>
<
%
if
(
web
.
paths
.
commands
)
{
%
>
<li><a
href=
"<%= web.paths.commands %>"
>
Commands
</a></li>
<
%
}
%
>
<
%
if
(
web
.
paths
.
preferences
)
{
%
>
<
%
if
(
web
.
paths
.
preferences
)
{
%
>
<li><a
href=
"<%= web.paths.preferences %>"
>
Preferences
</a></li>
<li><a
href=
"<%= web.paths.preferences %>"
>
Preferences
</a></li>
<
%
}
%
>
<
%
}
%
>
...
...
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