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
11b20007
Commit
11b20007
authored
Mar 15, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable/disable sidebar - renamed sticky-view in sticky-package
parent
1c78c61c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
35 deletions
+63
-35
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+29
-10
debomatic-webui/public/stylesheets/style.css
debomatic-webui/public/stylesheets/style.css
+11
-6
debomatic-webui/views/distribution.ejs
debomatic-webui/views/distribution.ejs
+23
-19
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
11b20007
...
@@ -304,21 +304,24 @@ function Page_Distrubion(socket)
...
@@ -304,21 +304,24 @@ function Page_Distrubion(socket)
$
(
window
).
off
(
"
scroll
"
)
$
(
window
).
off
(
"
scroll
"
)
},
},
show
:
function
()
{
show
:
function
()
{
if
(
config
.
preferences
.
sidebar
)
{
$
(
"
#sticky
"
).
addClass
(
'
fixed
'
)
$
(
"
#sticky
"
).
addClass
(
'
fixed
'
)
$
(
"
#sticky-view
"
).
fadeIn
()
}
debug
(
2
,
"
showing sticky
"
)
$
(
"
#sticky-package
"
).
fadeIn
()
},
},
hide
:
function
()
{
hide
:
function
()
{
$
(
"
#sticky
"
).
removeClass
(
'
fixed
'
)
$
(
"
#sticky
"
).
removeClass
(
'
fixed
'
)
$
(
"
#sticky-
view
"
).
fadeOut
(
150
)
$
(
"
#sticky-
package
"
).
fadeOut
(
150
)
},
},
update
:
function
()
{
update
:
function
()
{
var
sidebar
=
$
(
"
#files
"
)
var
sidebar
=
$
(
"
#files
"
)
sidebarOffset
=
sidebar
.
offset
().
top
sidebarOffset
=
sidebar
.
offset
().
top
if
(
Utils
.
check_view_distribution
(
view
))
if
(
Utils
.
check_view_distribution
(
view
))
$
(
"
#sticky-
view
.distribution
"
).
html
(
view
.
distribution
.
name
)
$
(
"
#sticky-
package
.distribution
"
).
html
(
view
.
distribution
.
name
)
if
(
Utils
.
check_view_package
(
view
))
{
if
(
Utils
.
check_view_package
(
view
))
{
$
(
"
#sticky-
view
.name
"
).
html
(
view
.
package
.
name
)
$
(
"
#sticky-
package
.name
"
).
html
(
view
.
package
.
name
)
$
(
"
#sticky-
view
.version
"
).
html
(
view
.
package
.
version
)
$
(
"
#sticky-
package
.version
"
).
html
(
view
.
package
.
version
)
sticky
.
set_status
()
sticky
.
set_status
()
}
}
},
},
...
@@ -335,10 +338,10 @@ function Page_Distrubion(socket)
...
@@ -335,10 +338,10 @@ function Page_Distrubion(socket)
{
{
// update html
// update html
var
info
=
Utils
.
get_status_icon_and_class
(
status_data
)
var
info
=
Utils
.
get_status_icon_and_class
(
status_data
)
var
panel
=
$
(
"
#sticky-
view
"
)
var
panel
=
$
(
"
#sticky-
package-content
"
)
panel
.
removeClass
()
panel
.
removeClass
()
panel
.
addClass
(
'
panel panel-
'
+
info
.
className
)
panel
.
addClass
(
'
panel panel-
'
+
info
.
className
)
var
div
=
$
(
"
#sticky-
view
.status
"
)
var
div
=
$
(
"
#sticky-
package
.status
"
)
div
.
find
(
'
span.icon
'
).
remove
()
div
.
find
(
'
span.icon
'
).
remove
()
div
.
html
(
div
.
html
()
+
'
'
+
Utils
.
get_status_icon_html
(
status_data
))
div
.
html
(
div
.
html
()
+
'
'
+
Utils
.
get_status_icon_html
(
status_data
))
}
}
...
@@ -364,6 +367,19 @@ function Page_Distrubion(socket)
...
@@ -364,6 +367,19 @@ function Page_Distrubion(socket)
},
},
}
}
var
preferences
=
function
()
{
if
(
!
config
.
preferences
.
sidebar
)
{
debug
(
2
,
"
no sidebar - updating html
"
)
$
(
"
#sidebar
"
).
removeClass
()
$
(
"
#sidebar
"
).
addClass
(
"
col-md-12 row
"
)
$
(
"
#packages
"
).
addClass
(
"
col-md-4
"
)
$
(
"
#logs
"
).
addClass
(
"
col-md-4
"
)
$
(
"
#files .others
"
).
addClass
(
"
col-md-4
"
)
$
(
"
#main
"
).
removeClass
().
addClass
(
"
col-md-12
"
)
$
(
"
#sticky-package
"
).
addClass
(
"
on-top
"
)
}
}
var
select
=
function
()
{
var
select
=
function
()
{
unselect
()
unselect
()
if
(
Utils
.
check_view_distribution
(
view
))
{
if
(
Utils
.
check_view_distribution
(
view
))
{
...
@@ -497,8 +513,8 @@ function Page_Distrubion(socket)
...
@@ -497,8 +513,8 @@ function Page_Distrubion(socket)
return
return
populate
()
populate
()
// Init sticky-
view
back_on_top on click
// Init sticky-
package
back_on_top on click
$
(
"
#sticky-
view
"
).
on
(
"
click
"
,
function
(){
$
(
"
#sticky-
package
"
).
on
(
"
click
"
,
function
(){
$
(
'
html
'
).
animate
({
scrollTop
:
0
},
100
);
$
(
'
html
'
).
animate
({
scrollTop
:
0
},
100
);
})
})
...
@@ -519,6 +535,9 @@ function Page_Distrubion(socket)
...
@@ -519,6 +535,9 @@ function Page_Distrubion(socket)
setTimeout
(
watch_for_new_lines
,
200
);
setTimeout
(
watch_for_new_lines
,
200
);
}
}
watch_for_new_lines
()
watch_for_new_lines
()
// Update html according with preferences
preferences
()
});
});
}
}
...
...
debomatic-webui/public/stylesheets/style.css
View file @
11b20007
...
@@ -36,26 +36,31 @@ aside .nav-pills li {
...
@@ -36,26 +36,31 @@ aside .nav-pills li {
top
:
0
;
top
:
0
;
}
}
#sticky-
view
{
#sticky-
package
{
display
:
none
;
display
:
none
;
position
:
fixed
;
position
:
fixed
;
bottom
:
50px
;
bottom
:
50px
;
font-size
:
22px
;
font-size
:
22px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
#sticky-package
.on-top
{
top
:
10px
;
right
:
10px
;
z-index
:
1
;
}
#sticky-
view
.package
.version
,
#sticky-
package
.package
.version
,
#sticky-
view
.distribution
,
#sticky-
package
.distribution
,
#sticky-
view
.icon
{
#sticky-
package
.icon
{
font-size
:
16px
;
font-size
:
16px
;
}
}
#sticky-
view
.panel-body
{
#sticky-
package
.panel-body
{
padding
:
10px
15px
;
padding
:
10px
15px
;
min-width
:
200px
;
min-width
:
200px
;
}
}
#sticky-
view
.panel-heading
{
#sticky-
package
.panel-heading
{
padding
:
8px
15px
;
padding
:
8px
15px
;
}
}
...
...
debomatic-webui/views/distribution.ejs
View file @
11b20007
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<h3 class="title">Files</h3>
<h3 class="title">Files</h3>
<ul class="nav nav-pills nav-stacked"></ul>
<ul class="nav nav-pills nav-stacked"></ul>
</nav>
</nav>
<div class="others">
<nav id="sources">
<nav id="sources">
<h4>Sources</h4>
<h4>Sources</h4>
<ul></ul>
<ul></ul>
...
@@ -28,8 +29,10 @@
...
@@ -28,8 +29,10 @@
<h4>Debs</h4>
<h4>Debs</h4>
<ul></ul>
<ul></ul>
</nav>
</nav>
</div>
</section>
</section>
<section title="Back on Top" id="sticky-view">
<section title="Back on Top" id="sticky-package">
<div id="sticky-package-content">
<div class="panel-heading">
<div class="panel-heading">
<h3 class="panel-title">
<h3 class="panel-title">
<span class="name"></span>
<span class="name"></span>
...
@@ -40,10 +43,11 @@
...
@@ -40,10 +43,11 @@
<div class="version"></div>
<div class="version"></div>
<div class="distribution text-muted"></div>
<div class="distribution text-muted"></div>
</div>
</div>
</div>
</section>
</section>
</aside>
</aside>
<section class="col-md-9">
<section
id="main"
class="col-md-9">
<header>
<header>
<h1 id="title"></h1>
<h1 id="title"></h1>
</header>
</header>
...
...
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