~sircmpwn/hub.sr.ht

ba9573e7da400c0c438c4327cb9a839dc610462b — Thorben G√ľnther 30 days ago a6579ef 0.11.6
Add `Edit account profile` button to hub profile

Also adds a link to /projects/create
1 files changed, 15 insertions(+), 0 deletions(-)

M hubsrht/templates/profile.html
M hubsrht/templates/profile.html => hubsrht/templates/profile.html +15 -0
@@ 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 %}