Initial commit

This commit is contained in:
2019-08-02 13:47:16 +03:00
commit a7b1233a0c
10 changed files with 2768 additions and 0 deletions

5
templates/404.html Normal file
View File

@@ -0,0 +1,5 @@
{% extends "base.html" %}
{% block title %}404{% endblock title %}
{% block content %}
<h1>404 - Could not find that page</h1>
{% endblock content %}

60
templates/answer.html Normal file
View File

@@ -0,0 +1,60 @@
{% extends "base.html" %} {% block title %} Ответ {% endblock title %}
{% block content %}
<!-- <h1>{{ id }}</h1> -->
<div class="content-block">
<div id="question" class="content-block-inner">
<p><font color="#544669">
<h4> {{ description }} </h4>
</font>
</p>
</div>
</div><br />
<div class="content-block">
<div id="answer" class="content-block-inner">
<hr/>
<p>
<!-- <h2> Ответ: </h2> -->
<h1>{{ answer }}</h1>
</p>
<hr/><br><br/><details>
<div id="details">
{% if comment | length or comment1 | length %}
<p><span>Комментарии:</span>
{% if comment | length %}
{{ comment }}
{% endif %}
{% if comment1 | length %}
<br/>
{{ comment1 }}
{% endif %}
</p>
{% endif %}
{% if author | length %}
<p><span>Автор: </span> {{ author }}</p>
{% endif %}
{% if copyright | length %}
<p><span>Копирайт: </span> {{ copyright }}</p>
{% endif %}
{% if source | length %}
<p><span>Источник: </span> {{ source }}</p>
{% endif %}
{% if theme | length %}
<p><span>Тема: </span> {{ theme }}</p>
{% endif %}
{% if rating | length %}
<p><span>Рейтинг: </span> {{ author }}</p>
{% endif %}
{% if batch_info.description | length %}
<p><span>Чемпионат: </span> {{ batch_info.description }}</p>
{% endif %}
{% if tour | length %}
<p><span>Тур: </span> {{ tour }}</p>
{% endif %}
{% if id | length %}
<p><span>Номер: </span> {{ id }}</p>
{% endif %}
</div></details>
</div>
<br />
{% endblock content %}

13
templates/base.html Normal file
View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="/q/static/style.css" />
<title>{% block title %}{% endblock title %}</title>
</head>
<body>
{% include "nav.html" %}
<div id="content" class="container">{% block content %}{% endblock content %}</div>
</body>
</html>

3
templates/nav.html Normal file
View File

@@ -0,0 +1,3 @@
<nav class="nav nav-pills container justify-content-center">
<a class="nav-link" href="/q/">Ещё</a>
</nav>

17
templates/question.html Normal file
View File

@@ -0,0 +1,17 @@
{% extends "base.html" %} {% block title %} Вопрос {% endblock title %}
{% block content %}
<!-- <h1>{{ id }}</h1> -->
<div class="content-block"><div id="question" class="content-block-inner">
<p>
<h3> {{ description }} </h3>
</p>
</div></div>
<br/>
<br/>
<br/><details>
<nav class="nav nav-pills container justify-content-center">
<a class="nav-link" href="/q/{{ num }}/a/">Ответ</a>
</nav></details>
{% endblock content %}