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
40d4005b
Commit
40d4005b
authored
Mar 08, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some html tests
parent
5682fd79
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
30 deletions
+56
-30
debomatic-webui/views/layout.ejs
debomatic-webui/views/layout.ejs
+56
-30
No files found.
debomatic-webui/views/layout.ejs
View file @
40d4005b
...
...
@@ -18,8 +18,33 @@
data
.
package
.
name
=
info
[
1
];
data
.
package
.
version
=
info
[
2
];
}
if
(
info
.
length
==
4
)
{
data
.
file
=
info
[
3
]
socket
.
emit
(
'
get-file
'
,
data
)
}
else
socket
.
emit
(
'
get-view
'
,
data
);
}
function
set_up_view
(
data
)
{
if
(
data
)
{
if
(
data
.
distribution
)
{
if
(
data
.
distribution
.
name
&&
data
.
distribution
.
packages
)
{
$
(
'
#packages
'
).
html
(
''
)
data
.
distribution
.
packages
.
forEach
(
function
(
p
){
div
=
$
(
'
#packages
'
).
append
(
'
<li><a href="#
'
+
data
.
distribution
.
name
+
'
/
'
+
p
.
name
+
'
/
'
+
p
.
version
+
'
">
'
+
p
.
name
+
'
<span>
'
+
p
.
version
+
'
</span></a></li>
'
)
})
}
if
(
data
.
package
)
{
$
(
'
#files
'
).
html
(
''
);
data
.
package
.
files
.
forEach
(
function
(
f
){
p
=
data
.
package
$
(
'
#files
'
).
append
(
'
<li><a href="#
'
+
data
.
distribution
.
name
+
'
/
'
+
p
.
name
+
'
/
'
+
p
.
version
+
'
/
'
+
f
.
name
+
'
">
'
+
f
.
label
+
'
</a></li>
'
)
})
}
}
}
}
var
socket
=
io
.
connect
(
'
//localhost:3000
'
);
socket
.
on
(
'
distributions
'
,
function
(
distributions
)
{
...
...
@@ -31,6 +56,7 @@
socket
.
on
(
'
view
'
,
function
(
data
){
console
.
log
(
data
)
set_up_view
(
data
)
});
socket
.
on
(
'
error
'
,
function
()
{
console
.
error
(
arguments
)
});
...
...
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