diff --git a/static/css/details.css b/static/css/details.css index 8cb4b41..e87a037 100644 --- a/static/css/details.css +++ b/static/css/details.css @@ -1,4 +1,34 @@ -table, th, td { - width: 100%; - border: 1px solid white; +h4 { + display: flex; + justify-content: center; + margin-bottom: 30px; +} + +.detailrow { + margin-bottom: 10px; +} + +.detailrow div { + width: 50%; + display: inline; +} + +.detailrow :first-child { + width: 30%; + font-size: 1.2em; + font-weight: bold; + float: left; +} + +.detailrow :last-child { + display: flex; + justify-content: right; + width: 70%; + float: right; + padding-right: 10px; +} + +#torrent #details { + border: 1px solid white; + padding: 10px; } diff --git a/templates/details.html b/templates/details.html index 7062b64..335215a 100644 --- a/templates/details.html +++ b/templates/details.html @@ -7,33 +7,37 @@ vim: ts=2 noexpandtab {% block content %} -

DETAILS

-
-Info ID: -{{ torrent.fileid }} -
-
-Name: -{{ torrent.name }} -
-
-Category: -{{ torrent.category }} -
-
-Subcategory: -{{ torrent.subcategory }} -
-
-Description: -{{ torrent.description }} -
-
-Audio quality: -{{ torrent.audioquality_description }} -
-
-Video quality: -{{ torrent.videoquality_description }} +
+

{{ torrent.name }}

+
+
+
Info Hash:
+
{{ torrent.fileid }}
+
+
+ Name: + {{ torrent.name }} +
+
+ Category: + {{ torrent.category }} +
+
+ Subcategory: + {{ torrent.subcategory }} +
+
+ Description: + {{ torrent.description or "-" }} +
+
+ Audio quality: + {{ torrent.audioquality_description or "-" }} +
+
+ Video quality: + {{ torrent.videoquality_description or "-" }} +
+
{% endblock content%}