From 123c712b340cab14c600a2f674598433789963cc Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 4 Oct 2015 01:53:04 +0200 Subject: reproducible: remove link to same page in navigation menu of pkg pages --- bin/reproducible_html_packages.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index 3c078eb5..6e6a3f85 100755 --- a/bin/reproducible_html_packages.py +++ b/bin/reproducible_html_packages.py @@ -195,9 +195,13 @@ def gen_suites_links(package, current_suite, current_arch): suffix = '\n' icon_html = prefix + '{spokenstatus}' + suffix html += icon_html.format(icon=icon, status=status, spokenstatus=spokenstatus) - html += (tab*2 + ' {} in {}\n').format(RB_PKG_URI, - s, a, package.name, spokenstatus, version, build_date, version, s, a, s) + if ( s == current_suite and a == current_arch ): + html += (tab*2 + ' {}').format(version) + else: + html += (tab*2 + ' {}').format(RB_PKG_URI, + s, a, package.name, spokenstatus, version, build_date, version) + html += ' in {}\n'.format(s, a, s) html += '\n' html += tab + '' html += '\n' -- cgit v1.2.3-70-g09d2