review/web_templates/index.html @ 538a3dada709 webpy-sucks

Make the index page work with CherryPy.
author Steve Losh <steve@stevelosh.com>
date Tue, 02 Mar 2010 21:58:58 -0500
parents 8e18e2c40a06
children f936bf37db17
{% extends "base.html" %}

{% block title %}{% endblock %}

{% block content %}
    <h2>Changesets</h2>
    <table>
        {% for rcset in rcsets %}
            {% set rev = rcset.target[rcset.node] %}
            {% set node_short = utils['node_short'](rev.node()) %}
            <tr class="${ loop.parity }">
                <td>{{ rev.rev() }}:{{ node_short }}</td>
                <td>
                    <a href="/review/{{ node_short }}/">{{  rev.description().splitlines()[0] }}</a>
                </td>
                <td class="last">
                    {{ utils['len'](rcset.comments) }} comments,
                    {{ utils['len'](ctx_signoffs) }} signoffs
                </td>
            </tr>
        {% endfor %}
    </table>
{% endblock %}



<!-- $ ctx_node = ctx.node()
$ ctx_node_short = node_short(ctx_node)
$ ctx_comments = rd[ctx_node].comments
$ ctx_signoffs = rd[ctx_node].signoffs -->