[buildinfo.debian.net] 03/05: Show key ID over node name now.

Chris Lamb chris at chris-lamb.co.uk
Fri Nov 4 12:27:25 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 f9f41b7fb7af570042d8d59121c2d20276c94d21
Author: Chris Lamb <lamby at debian.org>
Date:   Fri Nov 4 12:25:24 2016 +0000

    Show key ID over node name now.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 bidb/static/views.py          | 2 +-
 templates/buildinfo/view.html | 8 --------
 templates/static/landing.html | 5 ++++-
 3 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/bidb/static/views.py b/bidb/static/views.py
index 3d3e42a..b52a1dc 100644
--- a/bidb/static/views.py
+++ b/bidb/static/views.py
@@ -3,7 +3,7 @@ from django.shortcuts import render
 from bidb.buildinfo.buildinfo_submissions.models import Submission
 
 def landing(request):
-    latest = Submission.objects.order_by('-created')[:20]
+    latest = Submission.objects.select_related('key').order_by('-created')[:20]
     num_submissions = Submission.objects.count()
 
     return render(request, 'static/landing.html', {
diff --git a/templates/buildinfo/view.html b/templates/buildinfo/view.html
index 850c901..ce080c5 100644
--- a/templates/buildinfo/view.html
+++ b/templates/buildinfo/view.html
@@ -115,14 +115,6 @@
           <dd>
             <abbr title="{{ x.created|timesince }} ago">{{ x.created }}</abbr>
           </dd>
-          <dt>Node</dt>
-          <dd>
-            {% if x.node %}
-              <code>{{ x.node }}</code>
-            {% else %}
-              —
-            {% endif %}
-          </dd>
           <dt>Signature</dt>
           <dd>
             <a href="https://keyserver.ubuntu.com/pks/lookup?op=index&search=0x{{ x.key.uid|urlencode }}"><code>0x{{ x.key.uid }}</code></a>
diff --git a/templates/static/landing.html b/templates/static/landing.html
index 26664a9..e2291b9 100644
--- a/templates/static/landing.html
+++ b/templates/static/landing.html
@@ -53,7 +53,10 @@
         {% for x in latest %}
         <li>
           <a href="{{ x.buildinfo.get_absolute_url }}">{{ x.buildinfo.get_filename }}.buildinfo</a>
-          {% if x.node %}from <code>{{ x.node }}</code>{% endif %}
+          from <a href="https://keyserver.ubuntu.com/pks/lookup?op=index&search=0x{{ x.key.uid|urlencode }}"><code>0x{{ x.key.uid }}</code></a>
+          {% if x.key.name %}
+            <em>{{ x.key.name }}</em>
+          {% 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