Add metadata to database and UI

This commit is contained in:
sqozz
2017-12-28 08:36:44 +01:00
parent 77e11c3edc
commit b86e6cb7cb
6 changed files with 101 additions and 40 deletions

View File

@ -5,20 +5,21 @@ vim: ts=2 noexpandtab
{% block title %}{{ super() }} - Categories{% endblock%}
{% set active_page = "categories" %}
{% block content %}
<p>
<ul>
{% for category in categories %}
<li>
<a href="search?c={{ category }}">{{ category }}</a>
<ul>
{% for sub_category in categories[category] %}
<li>
<a href="search?s={{ sub_category }}">{{ sub_category }}</a>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</p>
<link href="{{ url_for("static", filename="css/categories.css") }}" rel="stylesheet">
{% for category in categories %}
<span>
<ul>
<li>
<a href="search?c={{ category }}">{{ category }}</a>
<ul>
{% for sub_category in categories[category] %}
<li>
<a href="search?s={{ sub_category }}">{{ sub_category }}</a>
</li>
{% endfor %}
</ul>
</li>
</ul>
</span>
{% endfor %}
{% endblock content%}

View File

@ -6,6 +6,7 @@ vim: ts=2 noexpandtab
{% set active_page = "search" %}
{% block content %}
<link href="{{ url_for("static", filename="css/result.css") }}" rel="stylesheet">
<script src="{{ url_for("static", filename="js/main.js") }}"></script>
<table>
<tr>
<th>Name</th>
@ -16,11 +17,11 @@ vim: ts=2 noexpandtab
</tr>
{% for result in results %}
<tr>
<td>{{ result[1] }}</td>
<td>test</td>
<td>N/A</td>
<td>N/A</td>
<td>N/A</td>
<td><a href="/download/{{ result[0] }}">{{ result[1] }}</a></td>
<td>{{ result[2]|int / 1000 / 1000 }}</td>
<td>N/A</td>
<td>N/A</td>
<td>N/A</td>
</tr>
{% endfor %}
</table>