From 431bc41cb5b93099411176a6d3b38ac14a659b98 Mon Sep 17 00:00:00 2001 From: Bat Date: Mon, 3 Sep 2018 15:03:25 +0100 Subject: [PATCH] Improve user header --- static/main.css | 2 +- templates/users/header.html.tera | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/static/main.css b/static/main.css index 93c42c9a..85eb65bc 100644 --- a/static/main.css +++ b/static/main.css @@ -468,7 +468,6 @@ form.new-post input[type="submit"]:hover { background: #DADADA; } flex-direction: row; align-items: center; margin-bottom: 0; - z-index: -20; } .badge { margin-left: 1em; @@ -758,4 +757,5 @@ figcaption { .avatar.medium { width: 100px; height: 100px; + margin: 20px; } diff --git a/templates/users/header.html.tera b/templates/users/header.html.tera index 3459b431..af4daa34 100644 --- a/templates/users/header.html.tera +++ b/templates/users/header.html.tera @@ -1,22 +1,22 @@
-
+
{{ + +

+ {{ user.name }} + + @{{ user.fqn }} + + {% if user.is_admin %} + {{ "Admin" | _ }} + {% endif %} + + {% if is_self %} + {{ "It is you" | _ }} + {% endif %} +

-

- {{ user.name }} - - @{{ user.fqn }} - - {% if user.is_admin %} - {{ "Admin" | _ }} - {% endif %} - - {% if is_self %} - {{ "It is you" | _ }} - {% endif %} -

- {% if is_self %} {{ "Edit your profile" | _ }} {% endif %}