tracaggr / templates / index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="ru-ru" />
    <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/static/base.css" />
    <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/static/{{ stylesheet }}.css" />

    <title>Trac Aggregator</title>
</head>

<body>
    <div id="tglcss">
        <a href="/toggle-css/">{{ other_ssheet }}</a>
    </div>
    <div id="contents">
        <span>Contents</span>
        <ul>
        {% for login, name in devs %}
        <li><a href="#{{ login }}">{{ name }}</a></li>
        {% endfor %}
        </ul>
    </div>
    {% for login, name in devs %}
    {% set usertckts = month_data.pop(login, {}) %}
    <h2 id="{{ login }}">{{ name }}<a class="anchor" href="#{{ login }}"></a></h2>
    <h3>
        <a href="/{{ '%02d' | format(prev_month) }}/{{ prev_year }}#{{ login }}"></a>
        {{ month_name }} {{ year }}
        <a href="/{{ '%02d' | format(next_month) }}/{{ next_year }}#{{ login }}"></a>
    </h3>
    <table class="cal">
        <tr>
            {% for wday in weekhdr %}<th>{{ wday }}</th>{% endfor %}
        </tr>
        {% for week in calendar %}
        <tr>
            {% for day in week %}
            {% set daystr = daytmpl % day %}
            <td class="{{ day_classes[day] }}">
                <span class="day">{{ day or '' }}</span>
                {% for trac, tickets in usertckts.pop(daystr, {}).items() %}
                    <span class="project_name">{{ trac }}</span>
                    {% for ticket in tickets %}
                    <p class="{{ ticket.status }}">
                    <a href="{{ ticket.base_url }}/ticket/{{ ticket.id }}"
                        title="{{ ticket.title }}">
                        <span class="num">#{{ ticket.id }}</span>:
                        {{ ticket.summary }}</a>
                    </p>
                    {% endfor %}
                {% endfor %}
            </td>
            {% endfor %}
        </tr>
        {% endfor %}
    </table>
    {% if opened or closed %}
    <div class="openedlist">
        <h4>Opened tickets</h4>
        {% for trac, tickets in opened.pop(login, {}).items() %}
            <span class="project_name">{{ trac }}</span>
            <ul>
            {% for ticket in tickets %}
            <li{% if ticket.delayed_by %} class="delayed"{% endif %}>
                <a href="{{ ticket.base_url }}/ticket/{{ ticket.id }}"
                   title="{{ ticket.title }}">
                        <span class="num">#{{ ticket.id }}</span>:
                        {{ ticket.summary }}</a>
                    <span class="delay">{{ ticket.delayed_by }}</span>
                </li>
            {% endfor %}
            </ul>
        {% endfor %}
    </div>
    <div class="clsdlist">
        <h4>Recently closed tickets</h4>
        {% for trac, tickets in closed.pop(login, {}).items() %}
            <span class="project_name">{{ trac }}</span>
            <ul>
            {% for ticket in tickets %}
                <li>
                    <a href="{{ ticket.base_url }}/ticket/{{ ticket.id }}"
                        title="{{ ticket.title }}">
                        <span class="num">#{{ ticket.id }}</span>:
                        {{ ticket.summary }}</a>
                </li>
            {% endfor %}
            </ul>
        {% endfor %}
    </div>
    {% endif %}
    <div class="tothetop">
        <a href="#contents">Back to the top</a>
    </div>
    {% endfor %}
</body>
</html>
{# vim: filetype=htmljinja
#}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.