Commit 0ea5c18c authored by Andreas Heimann's avatar Andreas Heimann

fixed search page design & made searchbox permanent

parent b72937ce
...@@ -46,9 +46,7 @@ ...@@ -46,9 +46,7 @@
</nav> </nav>
<form action="{{ path('search.index') }}" method="GET" class="search"> <form action="{{ path('search.index') }}" method="GET" class="search">
{% if app.request.attributes.get('_route') != 'search.index' %}
<input name="q" type="search" placeholder="Search for songs, tags & profiles..." value="{{ searchQuery|default('') }}" /> <input name="q" type="search" placeholder="Search for songs, tags & profiles..." value="{{ searchQuery|default('') }}" />
{% endif %}
</form> </form>
<nav class="items-right"> <nav class="items-right">
......
...@@ -7,9 +7,6 @@ ...@@ -7,9 +7,6 @@
<header> <header>
<div class="title">Search</div> <div class="title">Search</div>
<div class="actions"> <div class="actions">
<form action="{{ path('search.index') }}" method="GET">
<input name="q" type="search" placeholder="Search for songs, tags & profiles..." value="{{ searchQuery|default('') }}" />
</form>
<a href="{{ path('search.index', {showAll: true}) }}" class="button">Show all</a> <a href="{{ path('search.index', {showAll: true}) }}" class="button">Show all</a>
</div> </div>
</header> </header>
...@@ -23,9 +20,6 @@ ...@@ -23,9 +20,6 @@
{% endif %} {% endif %}
{% if results.users|length > 0 %} {% if results.users|length > 0 %}
<div class="user-row search-results-users"> <div class="user-row search-results-users">
<div class="user-header">
<div class="row-title row-title-noactions">Users</div>
</div>
<div class="user-list"> <div class="user-list">
{% for user in results.users %} {% for user in results.users %}
<a href="{{ path('user.detail', {userId: user.id}) }}" class="user-item"> <a href="{{ path('user.detail', {userId: user.id}) }}" class="user-item">
...@@ -46,9 +40,6 @@ ...@@ -46,9 +40,6 @@
{% endif %} {% endif %}
{% if results.songs|length > 0 %} {% if results.songs|length > 0 %}
<div class="song-row search-results-songs"> <div class="song-row search-results-songs">
<div class="song-header">
<div class="row-title row-title-noactions">Songs</div>
</div>
<div class="song-list"> <div class="song-list">
{% for song in results.songs %} {% for song in results.songs %}
{{ include('components/song-item.html.twig', {song: song}) }} {{ include('components/song-item.html.twig', {song: song}) }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment