gitscope
← rgit / 0.1.5 / 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    <div class="table-responsive">
 5    <table class="repositories">
 6        <thead>
 7        <tr>
 8            <th>Name</th>
 9            <th>Description</th>
10            <th>Owner</th>
11            <th>Idle</th>
12        </tr>
13        </thead>
14
15        <tbody>
16        {%- for (path, repositories) in self.take_iter() %}
17            {%- if !path.is_empty() %}
18            <tr><td class="repo-section" colspan="4">{{ path }}</td></tr>
19            {%- endif -%}
20
21            {%- for repository in repositories %}
22            {% set repository = repository.1.get() %}
23            <tr class="{% if !path.is_empty() %}has-parent{% endif %}">
24                <td>
25                    <a href="/{% if !path.is_empty() %}{{ path }}/{% endif %}{{ repository.name }}">
26                        {{- repository.name -}}
27                    </a>
28                </td>
29                <td>
30                    <a href="/{% if !path.is_empty() %}{{ path }}/{% endif %}{{ repository.name }}">
31                        {%- if let Some(description) = repository.description.as_ref() -%}
32                            {{- description -}}
33                        {%- else -%}
34                            Unnamed repository; edit this file 'description' to name the repository.
35                        {%- endif -%}
36                    </a>
37                </td>
38                <td>
39                    <a href="/{% if !path.is_empty() %}{{ path }}/{% endif %}{{ repository.name }}">
40                        {%- if let Some(owner) = repository.owner.as_ref() -%}
41                            {{- owner -}}
42                        {%- endif -%}
43                    </a>
44                </td>
45                <td>
46                    <a href="/{% if !path.is_empty() %}{{ path }}/{% endif %}{{ repository.name }}">
47                        <time datetime="{{ repository.last_modified|format_time }}" title="{{ repository.last_modified|format_time }}">
48                            {{- repository.last_modified|timeago -}}
49                        </time>
50                    </a>
51                </td>
52            </tr>
53            {%- endfor -%}
54        {%- endfor %}
55        </tbody>
56    </table>
57    </div>
58{% endblock %}