diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-09-21 08:19:09 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-09-21 08:19:09 +0200 |
commit | cb81d058e5738bd9d5a0fab3334dec2371ca5013 (patch) | |
tree | f23b8637ab3f669fb0ea0083e8a2a7ec4a450741 /src/web/templates | |
parent | Add new stop words. (diff) | |
download | newspipe-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.html | 3 | ||||
-rw-r--r-- | src/web/templates/profile_public.html | 7 |
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> |