summaryrefslogtreecommitdiffstats
path: root/gitsrht/templates/dashboard.html
blob: bd812becb3893652af7295d7b1c83dfdcc8b03cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{% extends "layout.html" %}
{% block body %}
<div class="container">
  <div class="row">
    <div class="col-md-4">
      <p>
        Welcome back, {{ current_user.username }}! This is the
        {{cfg("sr.ht", "site-name")}} git hosting service. Documentation
        for its use is
        <a href="https://man.sr.ht/git.sr.ht">available here</a>.
      </p>
      <a href="/create" class="btn btn-primary btn-block">
        Create new repository {{icon("caret-right")}}
      </a>
    </div>
    <div class="col-md-8">
      <hr class="d-md-none" />
      {% if repos and len(repos) %}
      <div class="event-list">
        {% for repo in repos %}
        <div class="event">
          <h4>
            <a href="/~{{current_user.username}}/{{repo.name}}">
              ~{{current_user.username}}/{{repo.name}}
            </a>
            {% if repo.visibility.value != 'public' %}
            <small class="pull-right">
              {{ repo.visibility.value }}
            </small>
            {% endif %}
          </h4>
          {% if repo.description %}
          <p>{{ repo.description }}</p>
          {% endif %}
        </div>
        {% endfor %}
      </div>
      <a href="/~{{current_user.username}}" class="btn btn-default pull-right">
        More on your profile {{icon("caret-right")}}
      </a>
      {% endif %}
    </div>
  </div>
</div>
{% endblock %}