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
ed9afffb
Commit
ed9afffb
authored
Jun 15, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature/commands_page
parents
fe0c11f8
acdbac07
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
1 deletion
+37
-1
History.md
History.md
+3
-0
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+29
-1
debomatic-webui/public/stylesheets/style.css
debomatic-webui/public/stylesheets/style.css
+4
-0
debomatic-webui/views/distribution.ejs
debomatic-webui/views/distribution.ejs
+1
-0
No files found.
History.md
View file @
ed9afffb
# 0.5.0
*
[new] packages search bar
# 0.4.2 (2014-06-15)
*
[fix] calculate pidfile for debomatic status check after merging configurations
...
...
debomatic-webui/public/javascripts/page_distribution.js
View file @
ed9afffb
...
...
@@ -142,7 +142,8 @@ function Page_Distrubion(socket) {
tmp
.
package
=
p
;
// get datestamp if package is clicked
$
(
'
#packages ul
'
).
append
(
'
<li id="package-
'
+
p
.
orig_name
+
'
"><a href="
'
+
Utils
.
from_view_to_hash
(
tmp
)
+
'
/datestamp">
'
+
p
.
name
+
'
<span>
'
+
p
.
version
+
'
</span></a></li>
'
);
Utils
.
from_view_to_hash
(
tmp
)
+
'
/datestamp"><span class="name">
'
+
p
.
name
+
'
</span>
'
+
'
<span class="version">
'
+
p
.
version
+
'
</span></a></li>
'
);
view
.
packages
[
p
.
orig_name
]
=
Utils
.
clone
(
p
);
});
packages
.
select
();
...
...
@@ -154,6 +155,7 @@ function Page_Distrubion(socket) {
},
clean
:
function
()
{
$
(
'
#packages ul
'
).
html
(
''
);
$
(
'
#packages .search
'
).
val
(
''
);
},
get
:
function
()
{
if
(
Utils
.
check_view_distribution
(
view
))
{
...
...
@@ -168,6 +170,7 @@ function Page_Distrubion(socket) {
if
(
Utils
.
check_view_package
(
view
))
{
$
(
'
#packages li[id="package-
'
+
view
.
package
.
orig_name
+
'
"]
'
).
addClass
(
'
active
'
);
}
packages
.
search
();
},
unselect
:
function
()
{
$
(
'
#packages li
'
).
removeClass
(
'
active
'
);
...
...
@@ -195,6 +198,26 @@ function Page_Distrubion(socket) {
},
hide
:
function
()
{
$
(
'
#packages
'
).
hide
();
},
search
:
function
(
token
)
{
if
(
!
token
)
token
=
$
(
"
#packages .search
"
).
val
();
if
(
!
token
)
{
debug
(
2
,
"
packages search token empty - showing all
"
);
$
(
"
#packages li
"
).
show
();
}
else
{
$
(
"
#packages li
"
).
not
(
'
.active
'
).
each
(
function
(
index
)
{
var
p_name
=
$
(
this
).
find
(
'
a span.name
'
).
text
();
if
(
p_name
.
indexOf
(
token
)
<
0
)
{
debug
(
2
,
"
packages search token:
"
,
token
,
"
hiding:
"
,
this
);
$
(
this
).
hide
();
}
else
{
debug
(
2
,
"
packages search token:
"
,
token
,
"
showing:
"
,
this
);
$
(
this
).
show
();
}
});
}
sticky
.
updateOffset
();
}
};
...
...
@@ -662,6 +685,11 @@ function Page_Distrubion(socket) {
}
watch_for_new_lines
();
// Handle search packages
$
(
'
#packages .search
'
).
on
(
'
keyup
'
,
function
(
event
)
{
packages
.
search
(
$
(
event
.
target
).
val
());
});
// Update html according with preferences
preferences
();
...
...
debomatic-webui/public/stylesheets/style.css
View file @
ed9afffb
...
...
@@ -102,6 +102,10 @@ footer {
border-top
:
1px
solid
#f0f0f0
;
}
#packages
.search
{
margin-bottom
:
5px
;
}
#packages
li
.icon
{
float
:
right
;
margin-top
:
-3px
;
...
...
debomatic-webui/views/distribution.ejs
View file @
ed9afffb
...
...
@@ -13,6 +13,7 @@
<aside id="sidebar" class="col-md-3">
<nav id="packages">
<h2>Packages</h2>
<input type="text" class="form-control search" placeholder="Search">
<ul class="nav nav-pills nav-stacked"></ul>
</nav>
...
...
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