aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-21 08:19:09 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-21 08:19:09 +0200
commitcb81d058e5738bd9d5a0fab3334dec2371ca5013 (patch)
treef23b8637ab3f669fb0ea0083e8a2a7ec4a450741 /src/web/templates
parentAdd new stop words. (diff)
downloadnewspipe-cb81d058e5738bd9d5a0fab3334dec2371ca5013.tar.gz
newspipe-cb81d058e5738bd9d5a0fab3334dec2371ca5013.tar.bz2
newspipe-cb81d058e5738bd9d5a0fab3334dec2371ca5013.zip
add column webpage in the user table
Diffstat (limited to 'src/web/templates')
-rw-r--r--src/web/templates/profile.html3
-rw-r--r--src/web/templates/profile_public.html7
2 files changed, 8 insertions, 2 deletions
diff --git a/src/web/templates/profile.html b/src/web/templates/profile.html
index 8751446f..9b5db48a 100644
--- a/src/web/templates/profile.html
+++ b/src/web/templates/profile.html
@@ -37,6 +37,9 @@
{{ form.is_public_profile.label }}
{{ form.is_public_profile(class_="form-control") }} {% for error in form.is_public_profile.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 %}
<br />
{{ form.submit(class_="btn") }}
</form>
diff --git a/src/web/templates/profile_public.html b/src/web/templates/profile_public.html
index c67a4e91..eac36441 100644
--- a/src/web/templates/profile_public.html
+++ b/src/web/templates/profile_public.html
@@ -4,8 +4,11 @@
<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>{{ _('Member since:') }} {{ user.date_created | datetime }}</p>
+ <p>{{ _('Last seen:') }} {{ user.last_seen | datetime }}</p>
+ {% if user.webpage %}
+ <p>{{ _('Webpage:') }} <a href="{{ user.webpage | safe }}">{{ user.webpage | safe }}</a></p>
+ {% endif %}
</div>
</div>
bgstack15