aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-07 10:59:54 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-07 10:59:54 +0200
commitc4eadb099283af409b13146554abf9e5a0cb49a6 (patch)
tree46cc6357bf50fc9ba884b346e4cd6fd8fcda7ad7 /src/web/templates
parentRedirect to the dashboard. (diff)
downloadnewspipe-c4eadb099283af409b13146554abf9e5a0cb49a6.tar.gz
newspipe-c4eadb099283af409b13146554abf9e5a0cb49a6.tar.bz2
newspipe-c4eadb099283af409b13146554abf9e5a0cb49a6.zip
Some other new update for the public profile page.
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