search.html 642 Bytes
Newer Older
fred's avatar
fred committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{% extends "base.html" %}
{% load i18n %}

{% block appbar %}
<h2>Nonstop</h2>
{% endblock %}

{% block content %}
<form><input name="q" type="search"><button>{% trans "Search" %}</button></form>
<hr>

{% if artists.exists %}
<h3>{% trans "Artists" %}</h3>
<ul>
  {% for artist in artists %}
  <li><a href="{% url 'artist-view' pk=artist.id %}">{{artist.name}}</a></li>
  {% endfor %}
</ul>
{% endif %}

{% if tracks.exists %}
<h3>{% trans "Tracks" %}</h3>
<ul>
  {% for track in tracks %}
fred's avatar
fred committed
25
  <li><a href="{% url 'track-view' pk=track.id %}">{{track.title}}</a> — {{track.artist.name}}</li>
fred's avatar
fred committed
26 27 28 29 30 31
  {% endfor %}
</ul>

{% endif %}

{% endblock %}