summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGuilherme Salgado <guilherme.salgado@linaro.org>2011-07-11 17:32:01 -0300
committerGuilherme Salgado <guilherme.salgado@linaro.org>2011-07-11 17:32:01 -0300
commit3cbaa5fac9324b08a567894e6ecfd82d62da1e94 (patch)
tree76f3fe175f0eeea29f51bc58e9dd6ca8500fe226 /templates
parentc252a4da4d6bd904f57599081aa00a038337e691 (diff)
Show the latest 10 patches submitted on the front page
Also changes the list of 10 oldest patches to include the project
Diffstat (limited to 'templates')
-rw-r--r--templates/patchmetrics/frontpage.html68
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 %}