From ba9573e7da400c0c438c4327cb9a839dc610462b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Sat, 24 Oct 2020 17:41:17 +0200 Subject: [PATCH] Add `Edit account profile` button to hub profile Also adds a link to /projects/create --- hubsrht/templates/profile.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hubsrht/templates/profile.html b/hubsrht/templates/profile.html index 36b6e8d..5516d1c 100644 --- a/hubsrht/templates/profile.html +++ b/hubsrht/templates/profile.html @@ -24,6 +24,21 @@ {% if user.bio %}

{{user.bio | md}}

{% endif %} + {% if current_user and user.id == current_user.id %} + + Create new project {{icon("caret-right")}} + + + Edit your profile {{icon("caret-right")}} + + {% endif %}
{% if projects %}