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