aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/templates')
-rw-r--r--src/web/templates/profile.html3
-rw-r--r--src/web/templates/profile_public.html26
2 files changed, 24 insertions, 5 deletions
diff --git a/src/web/templates/profile.html b/src/web/templates/profile.html
index 39834ca5..58d907ef 100644
--- a/src/web/templates/profile.html
+++ b/src/web/templates/profile.html
@@ -33,6 +33,9 @@
</div>
<div class="col-md-6">
+ {{ form.bio.label }}
+ {{ form.bio(class_="form-control") }} {% for error in form.bio.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
+
{{ form.webpage.label }}
{{ form.webpage(class_="form-control") }} {% for error in form.webpage.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
diff --git a/src/web/templates/profile_public.html b/src/web/templates/profile_public.html
index aed5bfcc..5bd002e0 100644
--- a/src/web/templates/profile_public.html
+++ b/src/web/templates/profile_public.html
@@ -4,18 +4,34 @@
<h1>{{ user.nickname }}</h1>
<div class="row">
<div class="col-md-12">
- <p>{{ _('Member since') }}: {{ user.date_created | datetime }}</p>
- <p>{{ _('Last seen') }}: {{ user.last_seen | datetime }}</p>
+ <p>
+ <span class="glyphicon glyphicon-time" aria-hidden="true"></span>&nbsp;
+ {{ _('Member since') }}: {{ user.date_created | datetime }}
+ </p>
+ <p>
+ <span class="glyphicon glyphicon-time" aria-hidden="true"></span>&nbsp;
+ {{ _('Last seen') }}: {{ user.last_seen | datetime }}
+ </p>
{% if user.webpage %}
- <p>{{ _('Webpage') }}: <a href="{{ user.webpage | safe }}">{{ user.webpage | safe }}</a></p>
+ <p>
+ <span class="glyphicon glyphicon-link" aria-hidden="true"></span>&nbsp;
+ {{ _('Webpage') }}: <a href="{{ user.webpage | safe }}">{{ user.webpage | safe }}</a>
+ </p>
{% endif %}
{% if user.twitter %}
- <p>{{ _('Twitter') }}: <a href="{{ user.twitter | safe }}">{{ user.twitter | safe }}</a></p>
+ <p>
+ <span class="glyphicon glyphicon-link" aria-hidden="true"></span>&nbsp;
+ {{ _('Twitter') }}: <a href="{{ user.twitter | safe }}">{{ user.twitter | safe }}</a>
+ </p>
{% endif %}
</div>
</div>
-
<div class="row">
+ <div class="col-md-5">
+ {% if user.bio %}
+ <p align="justify">{{ user.bio }}</p>
+ {% endif %}
+ </div>
<div class="col-md-6 pull-right">
<div>{{ tag_cloud|safe }}</div>
</div>
bgstack15