project.html 1.59 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>
sarah's avatar
sarah committed
17
        <section id="repo-content">
18

sarah's avatar
sarah committed
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
46
47
		    {% if project.readme %}
		        <section id="readme">
		        {{ project.readme }}
		        </section>
		    {% endif %}
		    <section id="tree">
			    <h3>Tree</h3>
			    <ul>
			      {% for file in project.tree %}
			        <li>{{ file.name }}</li>
			      {% endfor %}
			    </ul>
		    </section>
		    <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>
48
   </div>
49
{% endblock %}