[buildinfo.debian.net] 01/06: Show binaries on source page.
Chris Lamb
chris at chris-lamb.co.uk
Sun Nov 6 21:03:17 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 bb0773bb53fd6e559854a5bc748b349eaeb2df07
Author: Chris Lamb <lamby at debian.org>
Date: Sun Nov 6 19:51:14 2016 +0000
Show binaries on source page.
Signed-off-by: Chris Lamb <lamby at debian.org>
---
bidb/packages/views.py | 5 +++++
templates/packages/source.html | 10 ++++++++++
2 files changed, 15 insertions(+)
diff --git a/bidb/packages/views.py b/bidb/packages/views.py
index ea406ec..ab5319a 100644
--- a/bidb/packages/views.py
+++ b/bidb/packages/views.py
@@ -23,8 +23,13 @@ def binaries(request):
def source(request, name):
source = get_object_or_404(Source, name=name)
+ binaries = Binary.objects.filter(
+ generated_binaries__buildinfo__source=source,
+ ).distinct()
+
return render(request, 'packages/source.html', {
'source': source,
+ 'binaries': binaries,
})
def binary(request, name):
diff --git a/templates/packages/source.html b/templates/packages/source.html
index 887451a..f83f53b 100644
--- a/templates/packages/source.html
+++ b/templates/packages/source.html
@@ -11,6 +11,16 @@
</h1>
</div>
+<h2>Binaries</h2>
+
+<ul>
+ {% for x in binaries %}
+ <li>
+ <a href="{{ x.get_absolute_url }}"><span class="label label-default">{{ x.name }}</span></a>
+ </li>
+ {% endfor %}
+</ul>
+
<h2>.buildinfo files:</h2>
<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