[buildinfo.debian.net] 12/35: Show submissions.

Chris Lamb chris at chris-lamb.co.uk
Thu Nov 3 19:02:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository buildinfo.debian.net.

commit 5934b1e8b3e2eb0ecb0a5c691006c4eb57f1836e
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Oct 23 20:37:07 2016 +0200

    Show submissions.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 bidb/static/views.py          | 4 ++--
 templates/static/landing.html | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/bidb/static/views.py b/bidb/static/views.py
index b1e8794..f0bbd06 100644
--- a/bidb/static/views.py
+++ b/bidb/static/views.py
@@ -1,9 +1,9 @@
 from django.shortcuts import render
 
-from bidb.buildinfo.models import Buildinfo
+from bidb.buildinfo.buildinfo_submissions.models import Submission
 
 def landing(request):
-    latest = Buildinfo.objects.all()[:10]
+    latest = Submission.objects.all()[:20]
 
     return render(request, 'static/landing.html', {
         'latest': latest,
diff --git a/templates/static/landing.html b/templates/static/landing.html
index 222a45a..5e61ef3 100644
--- a/templates/static/landing.html
+++ b/templates/static/landing.html
@@ -22,12 +22,13 @@
 
   <div class="row">
     <div class="col-xs-12">
-      <h4>Latest uploads:</h4>
+      <h4>Latest submissions:</h4>
 
       <ul>
         {% for x in latest %}
         <li>
-          <a href="{{ x.get_absolute_url }}">{{ x.get_filename }}.buildinfo</a>
+          <a href="{{ x.buildinfo.get_absolute_url }}">{{ x.buildinfo.get_filename }}.buildinfo</a>
+          {% if x.node %}from <code>{{ x.node }}</code>{% endif %}
         </li>
         {% endfor %}
       </ul>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/buildinfo.debian.net.git



More information about the Reproducible-commits mailing list