Sam Jeston
History
28 lines·
1.4 KB
·HTML
| 1 | {% extends "base.html" %} |
| 2 | {% block title %}{{ profile.username }} · Openhub{% endblock %} |
| 3 | {% block content %} |
| 4 | <div class="layout-profile"> |
| 5 | <aside class="profile-card"> |
| 6 | {{ crate::web::fmt::avatar(profile.username, 200)|safe }} |
| 7 | <h1 class="profile-name">{{ profile.name() }}</h1> |
| 8 | {% if profile.name() != profile.username %}<div class="profile-login">{{ profile.username }}</div>{% endif %} |
| 9 | {% if !profile.bio.is_empty() %}<p class="profile-bio">{{ profile.bio }}</p>{% endif %} |
| 10 | {% if is_self %}<a class="btn btn-block" href="/settings/profile">Edit profile</a>{% endif %} |
| 11 | <div class="profile-meta">{{ crate::web::fmt::icon("clock")|safe }} Joined {{ crate::web::fmt::date(profile.created_at) }}</div> |
| 12 | </aside> |
| 13 | <div class="profile-main"> |
| 14 | <div class="section-header"> |
| 15 | <h2>Repositories <span class="counter">{{ repos.len() }}</span></h2> |
| 16 | {% if is_self %}<a class="btn btn-sm btn-primary" href="/new">{{ crate::web::fmt::icon("plus")|safe }} New</a>{% endif %} |
| 17 | </div> |
| 18 | {% if repos.is_empty() %} |
| 19 | <div class="blankslate"> |
| 20 | {{ crate::web::fmt::icon("book-marked")|safe }} |
| 21 | <h3>{% if is_self %}You don't have any repositories yet{% else %}{{ profile.username }} doesn't have any public repositories yet{% endif %}</h3> |
| 22 | </div> |
| 23 | {% else %} |
| 24 | <div class="box">{% include "partials/repo_list.html" %}</div> |
| 25 | {% endif %} |
| 26 | </div> |
| 27 | </div> |
| 28 | {% endblock %} |