Add Edit account profile button to hub profile

Also adds a link to /projects/create
This commit is contained in:
Thorben Günther 2020-10-24 17:41:17 +02:00 committed by Drew DeVault
parent a6579ef7f5
commit ba9573e7da

View file

@ -24,6 +24,21 @@
{% if user.bio %}
<p>{{user.bio | md}}</p>
{% endif %}
{% if current_user and user.id == current_user.id %}
<a
class="btn btn-primary btn-block"
href="{{url_for("projects.create_GET")}}"
>
Create new project {{icon("caret-right")}}
</a>
<a
style="margin-bottom: 1rem"
class="btn btn-white btn-sm btn-block"
href="{{get_origin("meta.sr.ht", external=True)}}/profile"
>
Edit your profile {{icon("caret-right")}}
</a>
{% endif %}
</div>
<div class="col-md-8">
{% if projects %}