Login
4 branches 0 tags
Ben (T14/NixOS) Minor styling changes fea6988 18 days ago 221 Commits
rubhub / templates / user / profile.html
<html>
  <head>
    <title>{{ user.name }}</title>
  </head>

  <body>
    {% include "partials/sidebar.html" %}
    <main>
      <section>
        <div class="page-header">
          <h1 class="project-header"><a href="{{ user.uri() }}">{{ user.name }}</a></h1>
          {% if is_owner %}
          <a class="btn" href="/settings"><span class="icon i-settings"></span> Settings</a>
          {% endif %}
        </div>
        {% if projects.len() > 0 %}
        <div class="card-grid">
          {% for project in projects %}
          {% include "partials/project_card.html" %}
          {% endfor %}
        </div>
        {% else %}
        <h4>No projects yet</h4>
        {% endif %}

        <br/>
        <div class="page-header">
          <h2 class="project-header"></h2>
          {% if is_owner %}
          <a class="btn" href="/projects/new"><span class="icon i-plus"></span> New project</a>
          {% endif %}
        </div>
      </section>
    </main>
  </body>
</html>