From e13235fc978b93db0ea6e3186046107f7e4ce7b7 Mon Sep 17 00:00:00 2001 From: nyaazi Date: Sat, 20 May 2017 23:00:42 +0300 Subject: [PATCH] "Unfix" the page --- nyaa/templates/view.html | 310 ++++++++++++++++++--------------------- 1 file changed, 145 insertions(+), 165 deletions(-) diff --git a/nyaa/templates/view.html b/nyaa/templates/view.html index 1c8311e..21d40d7 100644 --- a/nyaa/templates/view.html +++ b/nyaa/templates/view.html @@ -2,179 +2,159 @@ {% block title %}{{ torrent.display_name }} :: {{ config.SITE_NAME }}{% endblock %} {% block body %} {% from "_formhelpers.html" import render_field %} -
-
-

- {% if can_edit %} - - {% endif %} - {{ torrent.display_name }} -

-
-
-
-
Category:
- - -
Date:
-
{{ torrent.created_time.strftime('%Y-%m-%d %H:%M UTC') }}
-
- -
-
Submitter:
-
{% if not torrent.anonymous and torrent.user %} - {{ torrent.user.username }}{% else %} - Anonymous{% endif %}
- -
Seeders:
-
{% if config.ENABLE_SHOW_STATS %} - {{ torrent.stats.seed_count }}{% else %}Coming soon{% endif %}
- -
- -
-
Information:
-
- {% if torrent.information %} - {{ torrent.information_as_link | safe }} - {% else %} - No information. - {% endif %} -
- -
Leechers:
-
{% if config.ENABLE_SHOW_STATS %} - {{ torrent.stats.leech_count }}{% else %}Coming soon{% endif %}
-
- -
-
File size:
-
{{ torrent.filesize | filesizeformat(True) }}
- -
Downloads:
-
- {% if config.ENABLE_SHOW_STATS %}{{ torrent.stats.download_count }}{% else %}Coming - soon{% endif %}
-
-
- -
- -
-
- {% if torrent.description %} - {# Escape newlines into html entities because CF strips blank newlines #} - {{ torrent.description | escape | replace('\r\n', '\n') | replace('\n', ' '|safe) }} - {% else %} - #### No description. +
+
+

+ {% if can_edit %} + {% endif %} + {{ torrent.display_name }} +

+
+
+
+
Category:
+ + +
Date:
+
{{ torrent.created_time.strftime('%Y-%m-%d %H:%M UTC') }}
+
+ +
+
Submitter:
+
{% if not torrent.anonymous and torrent.user %}{{ torrent.user.username }}{% else %}Anonymous{% endif %}
+ +
Seeders:
+
{% if config.ENABLE_SHOW_STATS %}{{ torrent.stats.seed_count }}{% else %}Coming soon{% endif %}
+ +
+ +
+
Information:
+
+ {% if torrent.information %} + {{ torrent.information_as_link | safe }} + {% else %} + No information. + {% endif%} +
+ +
Leechers:
+
{% if config.ENABLE_SHOW_STATS %}{{ torrent.stats.leech_count }}{% else %}Coming soon{% endif %}
+
+ +
+
File size:
+
{{ torrent.filesize | filesizeformat(True) }}
+ +
Downloads:
+
{% if config.ENABLE_SHOW_STATS %}{{ torrent.stats.download_count }}{% else %}Coming soon{% endif %}
+ +
- {% if files and files.__len__() <= config.MAX_FILES_VIEW %} -
-
-

-
- +
+
+ {% if torrent.description %} + {# Escape newlines into html entities because CF strips blank newlines #} + {{ torrent.description | escape | replace('\r\n', '\n') | replace('\n', ' '|safe) }} + {% else %} + #### No description. + {% endif%} +
+
+ +{% if files and files.__len__() <= config.MAX_FILES_VIEW %} +
+
+

+
+ +
+

+
+ +
+ + + + + + + {%- for key, value in files.items() recursive %} + + {%- if value is iterable %} + + {{ loop(value.items()) }} + {%- else %} + +  {{ key }} + + {%- endif %} + + {%- endfor %} +
PathSize
+   {{ key }}{{ value | filesizeformat(True) }}
+
+
+{% elif files %} +
+
+

+
Too many files to display.
+

+
+
+{% else %} +
+
+

+
File list is not available for this torrent.
+

+
+
+{% endif %} + +

+
- -
- - - - - - - {%- for key, value in files.items() recursive %} - - {%- if value is iterable %} - - {{ loop(value.items()) }} - {%- else %} - -  {{ key }} - - {%- endif %} - - {%- endfor %} -
PathSize
-   {{ key }}{{ value | filesizeformat(True) }}
-
-
- {% elif files %} -
-
-

-
-
Too many files to display.
-
-

-
-
- {% else %} -
-
-

-
-
File list is not available for this torrent.
-
-

-
-
- {% endif %} - - - + -{% endblock %} +{% endblock %} \ No newline at end of file