project.html 1.39 KB
Newer Older
1
{% extends "base.html" %}
gijs's avatar
gijs committed
2

3
{% block content %}
4
5
6
7
8
9
10
11
12
13
14
15
16
   <div class="repo">
        <header class="header">
            <h2 class="repo-title">{{ project.name }}</h2>
            <h2 class="repo-title"></h2>
            <ul id="views">
                <span>views:</span>
              <li><a href="#" id="filter-readme">Description</a></li>
              <li><a href="#" id="filter-commit">Last update</a></li>
              <li><a href="#" id="filter-images">visual process </a></li>
              <li><a href="works-fonts.html" id="filter-fonts">Font used</a></li>
              <li><a href="#" id="filter-tree">Diagram</a></li>
            </ul>
        </header>
17
    {% if project.readme %}
sarah's avatar
sarah committed
18
        <section id="readme">
19
        {{ project.readme }}
sarah's avatar
sarah committed
20
        </section>
21
22
23
24
25
    {% endif %}
    
    <h3>Tree</h3>
    <ul>
      {% for file in project.tree %}
svilayphiou's avatar
svilayphiou committed
26
27
        <li>{{ file.name }}</li>
      {% endfor %}
28
    </ul>
29

30
    <h3>Commits</h3>
svilayphiou's avatar
svilayphiou committed
31
    <ul class="commit-list">
32
      {% for commit in project.commits %}
svilayphiou's avatar
svilayphiou committed
33
34
35
36
37
38
39
40
      <li class="commit-item">
          <a href="https://gitlab.constantvzw.org/osp/{{ project.name }}/-/commit/{{ commit.id }}">
              <time class="commit-time">{{ commit.committed_date }}</time>
          </a>
              <p class="commit-message">{{ commit.message }}</p>
              <p class="commit-author">{{ commit.author_name }}</p>
      </li>
      {% endfor %}
41
    </ul>
42
   </div>
43
{% endblock %}