aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-06 11:09:21 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-06 11:09:21 +0200
commitc8122e1981527a716639561cc3f880764f06387b (patch)
tree56c58229ba294f89870b027dc18585cc19d2dc54 /src/web/templates
parentImproved layout of the profile page. (diff)
downloadnewspipe-c8122e1981527a716639561cc3f880764f06387b.tar.gz
newspipe-c8122e1981527a716639561cc3f880764f06387b.tar.bz2
newspipe-c8122e1981527a716639561cc3f880764f06387b.zip
The user can now add its twitter page.
Diffstat (limited to 'src/web/templates')
-rw-r--r--src/web/templates/profile.html3
-rw-r--r--src/web/templates/profile_public.html3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/web/templates/profile.html b/src/web/templates/profile.html
index a8eac38f..d21608cf 100644
--- a/src/web/templates/profile.html
+++ b/src/web/templates/profile.html
@@ -36,6 +36,9 @@
{{ form.webpage.label }}
{{ form.webpage(class_="form-control") }} {% for error in form.webpage.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
+ {{ form.twitter.label }}
+ {{ form.twitter(class_="form-control") }} {% for error in form.twitter.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
+
{{ 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 %}
<p>{{ _('Your profile will be available <a href="%(url)s">here</a>.', url=url_for('user.profile_public', nickname=user.nickname) ) }}</p>
diff --git a/src/web/templates/profile_public.html b/src/web/templates/profile_public.html
index ea13ae63..aed5bfcc 100644
--- a/src/web/templates/profile_public.html
+++ b/src/web/templates/profile_public.html
@@ -9,6 +9,9 @@
{% if user.webpage %}
<p>{{ _('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>
+ {% endif %}
</div>
</div>
bgstack15