Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Discuss Data Project
Discuss Data
Commits
8e069105
Commit
8e069105
authored
Apr 25, 2020
by
felix.herrmann
Browse files
fix(template): use css class to mark multiple elements for ic-include
parent
352c1d31
Changes
1
Hide whitespace changes
Inline
Side-by-side
discuss_data/templates/nav-top.html
View file @
8e069105
...
@@ -9,9 +9,9 @@
...
@@ -9,9 +9,9 @@
<div
class=
"collapse navbar-collapse"
id=
"navbarSupportedContent"
>
<div
class=
"collapse navbar-collapse"
id=
"navbarSupportedContent"
>
<div
class=
"input-group w-25 mx-auto"
>
<div
class=
"input-group w-25 mx-auto"
>
<input
id=
"search-top"
class=
"form-control"
type=
"text"
{%
if
query
%}
value=
{{
query
}}{%
else
%}
placeholder=
"Search"
{%
endif
%}
name=
"q"
aria-label=
"Search"
>
<input
class=
"form-control
search-top
"
type=
"text"
{%
if
query
%}
value=
"
{{ query }}
"
{%
else
%}
placeholder=
"Search"
{%
endif
%}
name=
"q"
aria-label=
"Search"
>
<div
class=
"input-group-append"
>
<div
class=
"input-group-append"
>
<button
class=
"input-group-text"
type=
"button"
{%
if
query
%}
ic-action=
"click"
ic-action-target=
"#searchsubmit"
{%
else
%}
ic-get-from=
"{% url 'ddusers:search' %}"
ic-include=
"
#
search-top"
ic-push-url=
"true"
ic-push-params=
"q"
ic-target=
"#content"
{%
endif
%}
><i
class=
"fas fa-search"
></i></button>
<button
class=
"input-group-text"
type=
"button"
ic-action=
"click"
ic-action-target=
"#searchsubmit"
ic-include=
"
.
search-top"
ic-push-url=
"true"
ic-push-params=
"q"
ic-get-from=
"{% url 'ddusers:search' %}"
ic-target=
"#content"
><i
class=
"fas fa-search"
></i></button>
</div>
</div>
</div>
</div>
...
@@ -27,4 +27,4 @@
...
@@ -27,4 +27,4 @@
{% endif %}
{% endif %}
</ul>
</ul>
</div>
</div>
</nav>
</nav>
\ No newline at end of file
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