aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_wiki/templates/git_wiki/shortlog_table
blob: 95aac5789ca66b77e0d86a3a3e224550eb3830b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{% if shortlog %}
<table class="gitbrowser">
{% for l in shortlog %}
<tr>
    <td class="date">
        {{ l.date }}</td>
    <td class="author">
        {{ l.author|striptags }}</td>
    <td class="description">
        <a href="/k/commit/{{ l.hash }}/" class="description">
        {{ l.description|escape|truncatewords:10 }}</a></td>
    <td class="shorthash">
        {% if heads %}{% for h in heads.iteritems %}
            {% ifequal h.1 l.hash %} 
                <span class="head">[{{ h.0 }}]</span>
            {% endifequal %}
        {% endfor %}{% endif %} 
        {% if tags %}{% for t in tags.iteritems %}
                {% ifequal l.hash t.1 %}
                <span class="tag">[{{ t.0 }}]</span>
                {% endifequal %}{% endfor %}{% endif %}

        <a href="/k/commit/{{ l.hash }}" class="subtle">
        <span class="hash">{{ l.shorthash }}</span></a>...</td></tr>
{% endfor %}
</table>
{% else %}No shortlog!{% endif %}