raw
1{% extends "base.html" %}
2
3{% macro render_section(section) %}
4 {% if section.name.is_some() %}
5 <h2>{{ section.name.as_deref().unwrap_or("") }}</h2>
6 {% endif %}
7 {% for repo in section.repos %}
8 <table class="repo">
9 <tbody>
10 <tr>
11 <td class="repo-link"><a href="{{repo|repo_name|urlencode_strict}}">{{repo|repo_name}}</a></td>
12 <td class="repo-last-updated">last updated {{repo|last_modified|format_datetime("%Y-%m-%d")}}</td>
13 </tr>
14 <tr>
15 <td class="repo-description" colspan="2">{{repo|description}}</td>
16 </tr>
17 </tbody>
18 </table>
19 {% endfor %}
20{% endmacro %}
21
22{% block content %}
23 <div>
24 {% for section in sections %}
25 {{ render_section(section=section) }}
26 {% endfor %}
27 </div>
28{% endblock %}