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
9a31568d
Commit
9a31568d
authored
Mar 10, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use PATHS instead of single path variables
parent
f9cab02a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
debomatic-webui/public/javascripts/main.js
debomatic-webui/public/javascripts/main.js
+2
-2
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+1
-1
debomatic-webui/views/layout.ejs
debomatic-webui/views/layout.ejs
+1
-2
No files found.
debomatic-webui/public/javascripts/main.js
View file @
9a31568d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
socket
.
on
(
'
distributions
'
,
function
(
distributions
)
{
socket
.
on
(
'
distributions
'
,
function
(
distributions
)
{
$
(
'
#distributions ul
'
).
html
(
''
);
$
(
'
#distributions ul
'
).
html
(
''
);
distributions
.
forEach
(
function
(
name
){
distributions
.
forEach
(
function
(
name
){
$
(
'
#distributions ul
'
).
append
(
'
<li id="distribution-
'
+
name
+
'
"><a href="
'
+
DISTRIBUTION_PAGE
+
'
#
'
+
name
+
'
">
'
+
name
+
'
</li>
'
);
$
(
'
#distributions ul
'
).
append
(
'
<li id="distribution-
'
+
name
+
'
"><a href="
'
+
PATHS
.
distribution
+
'
#
'
+
name
+
'
">
'
+
name
+
'
</li>
'
);
});
});
});
});
...
@@ -18,7 +18,7 @@ socket.on('status-update', function(data) {
...
@@ -18,7 +18,7 @@ socket.on('status-update', function(data) {
console
.
log
(
data
)
console
.
log
(
data
)
})
})
if
(
window
.
location
.
pathname
==
DISTRIBUTION_PAGE
)
{
if
(
window
.
location
.
pathname
==
PATHS
.
distribution
)
{
function
__check_hash_makes_sense
()
{
function
__check_hash_makes_sense
()
{
if
(
!
window
.
location
.
hash
)
if
(
!
window
.
location
.
hash
)
...
...
debomatic-webui/public/javascripts/page_distribution.js
View file @
9a31568d
...
@@ -8,7 +8,7 @@ var Page_Distrubion = {
...
@@ -8,7 +8,7 @@ var Page_Distrubion = {
if
(
Utils
.
check_data_file
(
data
))
{
if
(
Utils
.
check_data_file
(
data
))
{
complete_name
=
data
.
package
.
orig_name
+
'
.
'
+
data
.
file
.
name
complete_name
=
data
.
package
.
orig_name
+
'
.
'
+
data
.
file
.
name
if
(
!
data
.
file
.
path
)
if
(
!
data
.
file
.
path
)
data
.
file
.
path
=
DEBOMATIC_STATIC
+
'
/
'
+
data
.
distribution
.
name
+
'
/pool/
'
+
data
.
package
.
orig_name
+
'
/
'
+
complete_name
data
.
file
.
path
=
PATHS
.
debomatic
+
'
/
'
+
data
.
distribution
.
name
+
'
/pool/
'
+
data
.
package
.
orig_name
+
'
/
'
+
complete_name
label
=
complete_name
+
'
\
label
=
complete_name
+
'
\
<a class="btn btn-link btn-lg" title="Download" href="
'
+
data
.
file
.
path
+
'
">
\
<a class="btn btn-link btn-lg" title="Download" href="
'
+
data
.
file
.
path
+
'
">
\
<span class="glyphicon glyphicon-download-alt"></span>
\
<span class="glyphicon glyphicon-download-alt"></span>
\
...
...
debomatic-webui/views/layout.ejs
View file @
9a31568d
...
@@ -44,9 +44,8 @@
...
@@ -44,9 +44,8 @@
<script
src=
"/libs/bootstrap/3.1.1/js/bootstrap.min.js"
></script>
<script
src=
"/libs/bootstrap/3.1.1/js/bootstrap.min.js"
></script>
<script>
<script>
var
DEBOMATIC_STATIC
=
'
<%= paths.debomatic %>
'
var
PATHS
=
<%-
JSON
.
stringify
(
paths
)
%>
var
AUTOSCROLL
=
<%=
autoscroll
%>
var
AUTOSCROLL
=
<%=
autoscroll
%>
var
DISTRIBUTION_PAGE
=
'
<%= paths.distribution %>
'
var
HOSTNAME
=
'
<%= host %><% if (port) { %>:<%= port%><% } %>
'
var
HOSTNAME
=
'
<%= host %><% if (port) { %>:<%= port%><% } %>
'
var
socket
=
io
.
connect
(
'
//
'
+
HOSTNAME
);
var
socket
=
io
.
connect
(
'
//
'
+
HOSTNAME
);
</script>
</script>
...
...
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