Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DARIAH-DE
TextGridRep Portal
Commits
0c3bd510
Commit
0c3bd510
authored
May 15, 2020
by
Ubbo Veentjer
Browse files
show 'active filters' checbox, active filters header only when needed. closes
#40
parent
f7de260d
Pipeline
#135124
canceled with stages
in 4 minutes and 49 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/jsp/base/navigation.jsp
View file @
0c3bd510
...
...
@@ -6,11 +6,10 @@
<form
class=
"tg search -header"
action=
"/search"
>
<fieldset
class=
"tg search_fake-input"
>
<div
class=
"tg search_filter"
>
<!-- #set ($filterParam = $request.getParameter('filter'))
#if ( $filterParam )
<c:if
test=
"
${
filter
.
size
()
>
0
}
"
>
<input
class=
"tg search_checkbox"
id=
"search-filters-active"
type=
"checkbox"
checked
>
<label for="search-filters-active">
#language(
'filters-active'
)
</label>
#end --
>
<label
for=
"search-filters-active"
>
${i18n[
'filters-active'
]}
</label>
</c:if
>
</div>
<div
class=
"tg search_search"
>
...
...
src/main/webapp/WEB-INF/jsp/search.jsp
View file @
0c3bd510
...
...
@@ -42,6 +42,7 @@
<h2
class=
"tgrep sidebar_heading"
>
${i18n['filter']}
</h2>
<c:if
test=
"
${
filter
.
size
()
>
0
}
"
>
<section
class=
"tgrep sidebar_panel"
>
<h3
class=
"tgrep sidebar_subheading"
>
${i18n['active-filters']}
</h3>
<ul
class=
"tgrep sidebar_list"
>
...
...
@@ -61,6 +62,7 @@
<button
class=
"tgrep sidebar_expand"
>
${i18n['expand']}
</button>
</c:if>
</section>
</c:if>
<c:forEach
items=
"
${
facets
}
"
var=
"facetGroup"
>
<c:if
test=
"
${
facetGroup
.
facet
.
size
()
!=
0
}
"
>
...
...
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