Add multi-purpose search

This commit is contained in:
sqozz
2017-12-28 05:07:42 +01:00
parent 17c833a616
commit 77e11c3edc
4 changed files with 37 additions and 9 deletions

View File

@ -9,11 +9,11 @@ vim: ts=2 noexpandtab
<ul>
{% for category in categories %}
<li>
{{ category }}
<a href="search?c={{ category }}">{{ category }}</a>
<ul>
{% for sub_category in categories[category] %}
<li>
{{ sub_category }}
<a href="search?s={{ sub_category }}">{{ sub_category }}</a>
</li>
{% endfor %}
</ul>

View File

@ -14,14 +14,14 @@ vim: ts=2 noexpandtab
<th>UL</th>
<th>DL</th>
</tr>
{% for result in results %}
<tr>
{% for result in results %}
<td>{{ result[1] }}</td>
<td>test</td>
<td>N/A</td>
<td>N/A</td>
<td>N/A</td>
{% endfor %}
</tr>
{% endfor %}
</table>
{% endblock content%}