gitar

index.djhtml

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