From a6b8245ec3359608ea20a4b847ad60b561b11bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Sch=C3=B6nsgibl?= Date: Tue, 6 Oct 2020 20:16:52 +0200 Subject: [PATCH] profile page grid style --- ivatar/ivataraccount/templates/profile.html | 57 ++++++++++----------- ivatar/static/css/libravatar_base.css | 3 ++ 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/ivatar/ivataraccount/templates/profile.html b/ivatar/ivataraccount/templates/profile.html index c4ee0fb..4184b95 100644 --- a/ivatar/ivataraccount/templates/profile.html +++ b/ivatar/ivataraccount/templates/profile.html @@ -70,39 +70,40 @@ outline: inherit; {% if user.confirmedemail_set.count or user.confirmedopenid_set.count %}

{% trans 'You have the following confirmed identities:' %}

-
+
{% for email in user.confirmedemail_set.all %}
{% csrf_token %} -
+
-

  -  +

+ + +   +  {{ email.email|truncatechars:12 }}

-
-
{% endfor %} {% for openid in user.confirmedopenid_set.all %}
{% csrf_token %} -
+

    {{ openid.openid|cut:"http://"|cut:"https://"|truncatechars:12 }}

-
-
- -
+
+
- + {% endfor %}
{% endif %} @@ -118,16 +119,16 @@ outline: inherit; {{ email.email }}
- {# TODO: (expires in xx hours) #} - {% endfor %} - {% for openid in user.unconfirmedopenid_set.all %} -
+{# TODO: (expires in xx hours) #} +{% endfor %} +{% for openid in user.unconfirmedopenid_set.all %} + {% csrf_token %}
- -{{ openid.openid }} + + {{ openid.openid }}
-
+ {# TODO: (expires in xx hours) #} {% endfor %} {% endif %} @@ -140,16 +141,14 @@ outline: inherit;

{% trans 'Here are the photos you have uploaded/imported:' %}

{% for photo in user.photo_set.all %} -
-
-

{% trans 'Image' %} {{ forloop.counter }}

-
-
-
- -
-
-
+
+
+

{% trans 'Image' %} {{ forloop.counter }}

+
+
+ +
+
{% endfor %}
{% endif %} diff --git a/ivatar/static/css/libravatar_base.css b/ivatar/static/css/libravatar_base.css index 19b5037..fe685f8 100644 --- a/ivatar/static/css/libravatar_base.css +++ b/ivatar/static/css/libravatar_base.css @@ -728,3 +728,6 @@ color:#335ECF; margin-top: 11rem !important; } } +.row.profileid{ + display:grid; + }