mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 20:59:59 +00:00
Make our HTML actually valid. Fix indentation.
This commit is contained in:
parent
16cfcff846
commit
8d393f5917
|
@ -281,4 +281,8 @@ a.text-purple:hover, a.text-purple:active, a.text-purple:focus { color: #a760e0;
|
||||||
.btn.active span.glyphicon-unchecked {
|
.btn.active span.glyphicon-unchecked {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
.center {
|
||||||
|
float: none;
|
||||||
|
margin: 0 auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>{% block title %}{{ config.SITE_NAME }}{% endblock %}</title>
|
<title>{% block title %}{{ config.SITE_NAME }}{% endblock %}</title>
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<link rel="shortcut icon" type="image/png" href="/static/favicon.png">
|
<link rel="shortcut icon" type="image/png" href="/static/favicon.png">
|
||||||
<link rel="icon" type="image/png" href="/static/favicon.png">
|
<link rel="icon" type="image/png" href="/static/favicon.png">
|
||||||
|
@ -167,7 +167,9 @@
|
||||||
('5_2', '- Photos', 'Pictures - Photos'),
|
('5_2', '- Photos', 'Pictures - Photos'),
|
||||||
('6_0', 'Software', 'Software'),
|
('6_0', 'Software', 'Software'),
|
||||||
('6_1', '- Applications', 'Software - Apps'),
|
('6_1', '- Applications', 'Software - Apps'),
|
||||||
('6_2', '- Games', 'Software - Games')] %}
|
('6_2', '- Games', 'Software - Games')]
|
||||||
|
%}
|
||||||
|
|
||||||
{% set suke_cats = [('1_0', 'Art', 'Art'),
|
{% set suke_cats = [('1_0', 'Art', 'Art'),
|
||||||
('1_1', '- Anime', 'Art - Anime'),
|
('1_1', '- Anime', 'Art - Anime'),
|
||||||
('1_2', '- Doujinshi', 'Art - Doujinshi'),
|
('1_2', '- Doujinshi', 'Art - Doujinshi'),
|
||||||
|
@ -176,14 +178,15 @@
|
||||||
('1_5', '- Pictures', 'Art - Pictures'),
|
('1_5', '- Pictures', 'Art - Pictures'),
|
||||||
('2_0', 'Real Life', 'Real Life'),
|
('2_0', 'Real Life', 'Real Life'),
|
||||||
('2_1', '- Photobooks and Pictures', 'Real Life - Pictures'),
|
('2_1', '- Photobooks and Pictures', 'Real Life - Pictures'),
|
||||||
('2_2', '- Videos', 'Real Life - Videos')] %}
|
('2_2', '- Videos', 'Real Life - Videos')]
|
||||||
|
%}
|
||||||
|
|
||||||
{% if config.SITE_FLAVOR == 'nyaa' %}
|
{% if config.SITE_FLAVOR == 'nyaa' %}
|
||||||
{% set used_cats = nyaa_cats %}
|
{% set used_cats = nyaa_cats %}
|
||||||
{% elif config.SITE_FLAVOR == 'sukebei' %}
|
{% elif config.SITE_FLAVOR == 'sukebei' %}
|
||||||
{% set used_cats = suke_cats %}
|
{% set used_cats = suke_cats %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<div class="search-container visible-xs visible-sm">
|
<div class="search-container visible-xs visible-sm">
|
||||||
{% if user_page %}
|
{% if user_page %}
|
||||||
<form class="navbar-form navbar-right form" action="{{ url_for('view_user', user_name=user.username) }}" method="get">
|
<form class="navbar-form navbar-right form" action="{{ url_for('view_user', user_name=user.username) }}" method="get">
|
||||||
|
@ -270,7 +273,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div> <!-- where is this? in a hurry, will fix later -->
|
</div>
|
||||||
</div><!--/.nav-collapse -->
|
</div><!--/.nav-collapse -->
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="/?c={{ cat_id }}" title="{{ torrent.main_category.name }} - {{ torrent.sub_category.name }}">
|
<a href="/?c={{ cat_id }}" title="{{ torrent.main_category.name }} - {{ torrent.sub_category.name }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<img src="/static/img/icons/{{ icon_dir }}/{{ cat_id }}.png">
|
<img src="/static/img/icons/{{ icon_dir }}/{{ cat_id }}.png" alt="{{ category_name(cat_id) }}">
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
{% if use_elastic %}
|
{% if use_elastic %}
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
<h3>No results found</h3>
|
<h3>No results found</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<center>
|
<div class="center">
|
||||||
{% if use_elastic %}
|
{% if use_elastic %}
|
||||||
{{ pagination.info }}
|
{{ pagination.info }}
|
||||||
{{ pagination.links }}
|
{{ pagination.links }}
|
||||||
|
@ -107,4 +107,4 @@
|
||||||
{% from "bootstrap/pagination.html" import render_pagination %}
|
{% from "bootstrap/pagination.html" import render_pagination %}
|
||||||
{{ render_pagination(torrent_query) }}
|
{{ render_pagination(torrent_query) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</center>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue