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

3
{% block content %}
4
    <div class="repo branch-{{ project.default_branch }}">
5
6
7
8
9
10
11
12
13
14
15
16
        <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>
sarah's avatar
sarah committed
17
        <section id="repo-content">
18

sarah's avatar
sarah committed
19
20
21
22
23
		    {% if project.readme %}
		        <section id="readme">
		        {{ project.readme }}
		        </section>
		    {% endif %}
24

sarah's avatar
sarah committed
25
26
27
28
29
30
31
32
		    <section id="tree">
			    <h3>Tree</h3>
			    <ul>
			      {% for file in project.tree %}
			        <li>{{ file.name }}</li>
			      {% endfor %}
			    </ul>
		    </section>
33
34
35



sarah's avatar
sarah committed
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
		    <section id="commits">

			    <h3>Commits</h3>
			    <ul class="commit-list">
			      {% for commit in project.commits %}
			      <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 %}
			    </ul>
		    </section>
    </section>
52
   </div>
53
54
55
56
{% endblock content %}

{% block script %}
{% endblock script %}