gitar

Update index to comply with new website structure

Author
Maarten Vangeneugden
Date
Sept. 20, 2020, 10:26 p.m.
Hash
35328c36817741e935215add62c3ecc03e9db920
Parent
f9e996825fdabc3a93948a48a27cba1fbf84d5dd
Modified file
templates/gitar/index.djhtml

templates/gitar/index.djhtml

8 additions and 6 deletions.

View changes Hide changes
1
1
{% load i18n %}
2
2
{% load static %}
3
3
4
4
{% block stylesheets %}
5
5
    {{ block.super }}
6
6
     <link href="{% static "website/gitar.css" %}" rel="stylesheet" media="screen, projection" />
7
7
{% endblock stylesheets %}
8
8
9
9
{% block title %}{% trans "Gitar | Index page" %}{% endblock title %}
10
10
11
11
{% block description %}
12
12
{% trans "My personal answer to GitHub." %}
13
13
{% endblock description %}
14
14
15
15
{% block header %}
16
16
<header>                                                                                                                                                                                         
17
-
    <h1>Gitar</h1>  
+
17
    <h1>Gitar</h1>  
18
18
    <label for="nav-drawer-toggle"></label>
19
19
</header>
20
20
{% endblock header %}
21
21
22
22
{% block nav %}
23
23
<input id="nav-drawer-toggle" type="checkbox" />
24
24
<nav>
25
25
    <label for="nav-drawer-toggle"><!--🡨-->🡠</label>
26
26
    <h2>{% trans "Navigation" %}</h2>
27
-
    {% for title, date, blog_text, link in posts %}
28
-
    <a class="nav-link" href="{{ link }}">{{ title }}</a>
29
-
    {% endfor %}
+
27
    {% for repository in repositories %}
+
28
    <a class="nav-link" href="{% url 'gitar-repository' repository_name=repository.name %}">
+
29
        {{ repository.name }}
+
30
    </a>
+
31
    {% endfor %}
30
32
    <hr class="half" />
31
33
    <a class="nav-link" href="{% url 'about-index' %}">{% trans "Front page" %}</a>
32
34
  </nav>
33
35
{% endblock nav %}
34
36
35
37
36
38
{% block main %}
37
39
38
40
{# with mdac=materialDesign_accentColor %} {# You'll see why this is handy shortly. #}
39
41
{# with mdc=materialDesign_color #}
40
42
<section class="emphasis">
41
43
    <h1>{% trans "About Gitar" %}</h1>
42
44
    <p>
43
45
        {% blocktrans %}
44
46
		Gitar is a simple web app to easily host Git repositories using the Django framework.
45
47
        It's a hobby project of me, to make it easy for
46
48
        people to scroll through the code I publish, in a read-only fashion. It
47
49
        makes use of
48
50
        <a href="http://pygments.org/" target="_blank">Pygments</a>
49
-
        to read the source files, and apply the appropriate syntax coloring.
+
51
        to read the source files, and apply the appropriate syntax coloring.
50
52
        {% endblocktrans %}
51
53
	</p>
52
54
    <p>
53
55
        {% blocktrans %}All repositories are automatically updated when changes
54
56
        have been pushed to the server, without any manual intervention from me.
55
57
        Special attention goes to clean URL design, adhering to web standards,
56
58
        and responsive design across all screen types.{% endblocktrans %}
57
59
    </p>
58
60
    <p>
59
61
        {% blocktrans %}Gitar <b>is a project under development!</b>
60
62
        While it's certainly presentable, there's still a lot of room for improvement.<br />
61
63
        Also, if you happen to walk in while I'm working, it's possible you'll
62
64
        fall through the floor, so be warned =D{% endblocktrans %}
63
65
    </p>
64
66
</section>
65
67
<section>
66
68
    <h3>{% trans "Public repositories" %}</h3>
67
69
		{% for repository in repositories %} {# ARGH DON'T YOU LOVE THE READABILITY #}
68
70
            <p>
69
71
                <a class="btn fill" href="{% url 'gitar-repository' repository_name=repository.name %}">
70
72
                    {{ repository.name }}
71
73
                </a>
72
74
                {{ repository.description }} 
73
75
            </p>
74
76
            <dl>
75
77
            <dt>🅿️</dt>
76
78
            <dd>{{ repository.programmingLanguage }}</dd>
77
79
                <!--<li><i class="material-icons">description</i> 
78
80
                    {{ repository.fileCount }}</li>-->
79
81
            <dt>©️</dt>
80
82
            <dd>{{ repository.license }}</dd>
81
83
            </dl>
82
84
            <hr>
83
-
		{% endfor %}
+
85
		{% endfor %}
84
86
</section>
85
87
{% endblock main %}
86
88