diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/patchmetrics/frontpage.html | 68 |
1 files changed, 49 insertions, 19 deletions
diff --git a/templates/patchmetrics/frontpage.html b/templates/patchmetrics/frontpage.html index bc49054..6375229 100644 --- a/templates/patchmetrics/frontpage.html +++ b/templates/patchmetrics/frontpage.html @@ -83,26 +83,56 @@ common questions.</p> </div> </div> +<h2>Latest patches submitted</h2> +<table class="patchlist"> + <thead> + <tr> + <th>Patch</th> + <th>Project</th> + <th>Date</th> + <th>Author</th> + </tr> + </thead> + + <tbody> + {% for patch in latest_patches %} + <tr class="{% cycle 'odd' 'even' %}"> + <td><a href="{% url patchmetrics.views.patch patch_id=patch.id %}" + >{{ patch.name|default:"[no subject]" }}</a></td> + <td><a href="{% url patchmetrics.views.project + project_id=patch.project.linkname %}" + >{{ patch.project.name }}</a></td> + <td>{{ patch.date|date:"Y-m-d" }}</td> + <td>{{ patch.author|personify }}</td> + </tr> + {% endfor %} + </tbody> +</table> + <h2>Oldest patches not accepted yet</h2> -<table class="patchlist" id="patchlist"> - <thead> - <tr> - <th>Patch</th> - <th>Date</th> - <th>Author</th> - </tr> - </thead> - - <tbody> - {% for patch in old_patches %} - <tr class="{% cycle 'odd' 'even' %}"> - <td><a href="{% url patchmetrics.views.patch patch_id=patch.id %}" - >{{ patch.name|default:"[no subject]" }}</a></td> - <td>{{ patch.date|date:"Y-m-d" }}</td> - <td>{{ patch.author|personify }}</td> - </tr> - {% endfor %} - </tbody> +<table class="patchlist"> + <thead> + <tr> + <th>Patch</th> + <th>Project</th> + <th>Date</th> + <th>Author</th> + </tr> + </thead> + + <tbody> + {% for patch in old_patches %} + <tr class="{% cycle 'odd' 'even' %}"> + <td><a href="{% url patchmetrics.views.patch patch_id=patch.id %}" + >{{ patch.name|default:"[no subject]" }}</a></td> + <td><a href="{% url patchmetrics.views.project + project_id=patch.project.linkname %}" + >{{ patch.project.name }}</a></td> + <td>{{ patch.date|date:"Y-m-d" }}</td> + <td>{{ patch.author|personify }}</td> + </tr> + {% endfor %} + </tbody> </table> {% endblock %} |