~comcloudway/builds.sr.ht

85824059ff7a1daebaffb7dbe73cf3ec7aa8b6f4 — Drew DeVault 5 years ago c48814a
Add user profile info to user jobs page
1 files changed, 21 insertions(+), 0 deletions(-)

M buildsrht/templates/sidebar.html
M buildsrht/templates/sidebar.html => buildsrht/templates/sidebar.html +21 -0
@@ 1,4 1,25 @@
<div class="sidebar">
  {% if user %}
  <h2>
    ~{{ user.username }}
  </h2>
  {% if user.location %}
  <p>{{user.location}}</p>
  {% endif %}
  {% if user.url %}
  <p>
    <a
      href="{{user.url}}"
      target="_blank"
      rel="me noopener noreferrer nofollow"
    >{{user.url}}</a>
  </p>
  {% endif %}
  {% if user.bio %}
  {{user.bio | md}}
  {% endif %}
  <hr />
  {% endif %}
  <p>Embeddable badge for this view:</p>
  {% set badge = request.path + '.svg' + ('?search=' + search if search else '') %}
  <a href="{{badge}}"><img src="{{badge}}" alt="builds.sr.ht status" /></a>