parent
d2ad7b3125
commit
a6e1735cac
Binary file not shown.
Binary file not shown.
@ -1,10 +1,10 @@
|
|||||||
{% extends "template.html" -%}
|
{% extends "template.html" -%}
|
||||||
|
|
||||||
{% block content -%}
|
{% block content -%}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="important">
|
<div class="important">
|
||||||
Error<br>
|
Error<br>
|
||||||
<span>{{ errorcode }}</span>
|
<span>{{ errorcode }}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endblock -%}
|
{% endblock -%}
|
||||||
|
@ -1,27 +1,27 @@
|
|||||||
{% extends "template.html" -%}
|
{% extends "template.html" -%}
|
||||||
|
|
||||||
{% block content -%}
|
{% block content -%}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="blog">
|
<div class="blog">
|
||||||
<h1>Blog</h1><br>
|
<h1>Blog</h1><br>
|
||||||
{% for entry in entries -%}
|
{% for entry in entries -%}
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<h1 id="{{ entry.id }}">
|
<h1 id="{{ entry.id }}">
|
||||||
<a href="{{ url_for('entry', ident=entry.id) }}">
|
<a href="{{ url_for('entry', ident=entry.id) }}">
|
||||||
{{ entry.item.name }} ({{ entry.item.date }}) {{ r_to_star(entry.rating) }}
|
{{ entry.item.name }} ({{ entry.item.date }}) {{ r_to_star(entry.rating) }}
|
||||||
</a>
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
<small>
|
<small>
|
||||||
rated {{ entry.rating }}/100 by
|
rated {{ entry.rating }}/100 by
|
||||||
<a href="{{ url_for('user', name=entry.user.name) }}">
|
<a href="{{ url_for('user', name=entry.user.name) }}">
|
||||||
{{ entry.user.name }}
|
{{ entry.user.name }}
|
||||||
</a>
|
</a> on {{ entry.reviewed }}
|
||||||
</small><br>
|
</small><br>
|
||||||
{% autoescape off -%}
|
{% autoescape off -%}
|
||||||
{{ entry.text }}
|
{{ entry.text }}
|
||||||
{% endautoescape -%}
|
{% endautoescape -%}
|
||||||
</div><br>
|
</div><br>
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endblock -%}
|
{% endblock -%}
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
{% extends "template.html" -%}
|
{% extends "template.html" -%}
|
||||||
|
|
||||||
{% block content -%}
|
{% block content -%}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="logging">
|
<div class="logging">
|
||||||
<h1>Sign In</h1>
|
<h1>Sign In</h1>
|
||||||
<form action="" method="post" novalidate>
|
<form action="" method="post" novalidate>
|
||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
<p>
|
<p>
|
||||||
{{ form.username.label }}<br>
|
{{ form.username.label }}<br>
|
||||||
{{ form.username(size=32) }}
|
{{ form.username(size=32) }}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{{ form.password.label }}<br>
|
{{ form.password.label }}<br>
|
||||||
{{ form.password(size=32) }}
|
{{ form.password(size=32) }}
|
||||||
</p>
|
</p>
|
||||||
<p>{{ form.submit() }}</p>
|
<p>{{ form.submit() }}</p>
|
||||||
{% for mesg in get_flashed_messages() -%}
|
{% for mesg in get_flashed_messages() -%}
|
||||||
<p>{{ mesg }}</p>
|
<p>{{ mesg }}</p>
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endblock -%}
|
{% endblock -%}
|
||||||
|
@ -1,37 +1,37 @@
|
|||||||
{% extends "template.html" -%}
|
{% extends "template.html" -%}
|
||||||
|
|
||||||
{% block content -%}
|
{% block content -%}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="logging">
|
<div class="logging">
|
||||||
<h1>Register</h1>
|
<h1>Register</h1>
|
||||||
<form action="" method="post" novalidate>
|
<form action="" method="post" novalidate>
|
||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
<p>
|
<p>
|
||||||
{{ form.username.label }}<br>
|
{{ form.username.label }}<br>
|
||||||
{{ form.username(size=32) }}
|
{{ form.username(size=32) }}
|
||||||
{% for error in form.username.errors -%}
|
{% for error in form.username.errors -%}
|
||||||
<span style="color: red;">[{{ error }}]</span>
|
<span style="color: red;">[{{ error }}]</span>
|
||||||
|
{% endfor -%}
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
{{ form.password.label }}<br>
|
||||||
|
{{ form.password(size=32) }}
|
||||||
|
{% for error in form.password.errors -%}
|
||||||
|
<span style="color: red;">[{{ error }}]</span>
|
||||||
|
{% endfor -%}
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
{{ form.password2.label }}<br>
|
||||||
|
{{ form.password2(size=32) }}
|
||||||
|
{% for error in form.password2.errors -%}
|
||||||
|
<span style="color: red;">[{{ error }}]</span>
|
||||||
|
{% endfor -%}
|
||||||
|
</p>
|
||||||
|
<p>{{ form.submit() }}</p>
|
||||||
|
{% for mesg in get_flashed_messages() -%}
|
||||||
|
<p>{{ mesg }}</p>
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
</p>
|
</form>
|
||||||
<p>
|
</div>
|
||||||
{{ form.password.label }}<br>
|
|
||||||
{{ form.password(size=32) }}
|
|
||||||
{% for error in form.password.errors -%}
|
|
||||||
<span style="color: red;">[{{ error }}]</span>
|
|
||||||
{% endfor -%}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{{ form.password2.label }}<br>
|
|
||||||
{{ form.password2(size=32) }}
|
|
||||||
{% for error in form.password2.errors -%}
|
|
||||||
<span style="color: red;">[{{ error }}]</span>
|
|
||||||
{% endfor -%}
|
|
||||||
</p>
|
|
||||||
<p>{{ form.submit() }}</p>
|
|
||||||
{% for mesg in get_flashed_messages() -%}
|
|
||||||
<p>{{ mesg }}</p>
|
|
||||||
{% endfor -%}
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endblock -%}
|
{% endblock -%}
|
||||||
|
@ -1,34 +1,34 @@
|
|||||||
{% extends "template.html" -%}
|
{% extends "template.html" -%}
|
||||||
|
|
||||||
{% block content -%}
|
{% block content -%}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="standalone">
|
<div class="standalone">
|
||||||
<h1>
|
<h1>
|
||||||
{{ entry.item.name }} ({{ entry.item.date }})
|
{{ entry.item.name }} ({{ entry.item.date }})
|
||||||
{{ r_to_star(entry.rating) }}
|
{{ r_to_star(entry.rating) }}
|
||||||
</h1>
|
</h1>
|
||||||
<small>
|
<small>
|
||||||
rated {{ entry.rating }}/100 by
|
rated {{ entry.rating }}/100 by
|
||||||
<a href="{{ url_for('user', name=entry.user.name) }}">
|
<a href="{{ url_for('user', name=entry.user.name) }}">
|
||||||
{{ entry.user.name }}
|
{{ entry.user.name }}
|
||||||
</a>
|
</a>
|
||||||
on
|
on
|
||||||
<a href="{{ url_for('index', _anchor=entry.id) }}">
|
<a href="{{ url_for('index', _anchor=entry.id) }}">
|
||||||
{{ entry.reviewed }}
|
{{ entry.reviewed }}
|
||||||
</a>
|
</a>
|
||||||
</small><br>
|
</small><br>
|
||||||
{% if current_user.id == entry.user.id -%}
|
{% if current_user.id == entry.user.id -%}
|
||||||
<small>
|
<small>
|
||||||
[
|
[
|
||||||
<a href="{{ url_for('delete_entry', ident=entry.id) }}">
|
<a href="{{ url_for('delete_entry', ident=entry.id) }}">
|
||||||
delete entry
|
delete entry
|
||||||
</a>
|
</a>
|
||||||
]
|
]
|
||||||
</small><br>
|
</small><br>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% autoescape off -%}
|
{% autoescape off -%}
|
||||||
{{ entry.text }}
|
{{ entry.text }}
|
||||||
{% endautoescape -%}<br>
|
{% endautoescape -%}<br>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endblock -%}
|
{% endblock -%}
|
||||||
|
Loading…
Reference in new issue