gitscope
← rgit / 0.1.1 / templates/index.html
https://dev.kronoz.win/r/rgit.git
templates/index.html · HTML
Blame Raw
 1{% extends "base.html" %}
 2
 3{% block content %}
 4    <table class="repositories">
 5        <thead>
 6        <tr>
 7            <th>Name</th>
 8            <th>Description</th>
 9            <th>Owner</th>
10            <th>Idle</th>
11        </tr>
12        </thead>
13
14        <tbody>
15        {%- for (path, repositories) in repositories.iter() %}
16            {%- if let Some(path) = path %}
17            <tr><td class="repo-section" colspan="4">{{ path }}</td></tr>
18            {%- endif -%}
19
20            {%- for repository in repositories %}
21            <tr class="{% if path.is_some() %}has-parent{% endif %}">
22                <td>
23                    <a href="/{% if let Some(path) = path %}{{ path }}/{% endif %}{{ repository.name }}">
24                        {{- repository.name -}}
25                    </a>
26                </td>
27                <td>
28                    <a href="/{% if let Some(path) = path %}{{ path }}/{% endif %}{{ repository.name }}">
29                        {%- if let Some(description) = repository.description -%}
30                            {{- description -}}
31                        {%- else -%}
32                            Unnamed repository; edit this file 'description' to name the repository.
33                        {%- endif -%}
34                    </a>
35                </td>
36                <td>
37                    <a href="/{% if let Some(path) = path %}{{ path }}/{% endif %}{{ repository.name }}">
38                        {%- if let Some(owner) = repository.owner -%}
39                            {{- owner -}}
40                        {%- endif -%}
41                    </a>
42                </td>
43                <td>
44                    <a href="/{% if let Some(path) = path %}{{ path }}/{% endif %}{{ repository.name }}">
45                        <time datetime="{{ repository.last_modified }}" title="{{ repository.last_modified }}">
46                            {{- repository.last_modified.clone()|timeago -}}
47                        </time>
48                    </a>
49                </td>
50            </tr>
51            {%- endfor -%}
52        {%- endfor %}
53        </tbody>
54    </table>
55{% endblock %}