summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2015-02-09 19:46:15 +0000
committerChris Lamb <lamby@debian.org>2015-02-10 11:50:13 +0000
commite2ffeb5b3ef0809382e83feae70329f2976ea995 (patch)
tree3cfd46ed260509db00e3856edcc752c69c846c93
parent456429f39f2edec8ad07ff67c9d94256a98350b5 (diff)
downloadjenkins.debian.net-e2ffeb5b3ef0809382e83feae70329f2976ea995.tar.xz
bin/reproducible_html_notes: let more external URLs escape the iframe tarpit
-rwxr-xr-xbin/reproducible_html_notes.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index 7fb03917..dbde9474 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -29,7 +29,7 @@ note_html = Template((tab*2).join("""
<tr>
<td colspan="2" style="text-align:right; font-size:0.9em;">
<p>
- Notes are stored in <a href="https://anonscm.debian.org/cgit/reproducible/notes.git">notes.git</a>.
+ Notes are stored in <a href="https://anonscm.debian.org/cgit/reproducible/notes.git" target="_parent">notes.git</a>.
</p>
</td>
</tr>
@@ -133,7 +133,7 @@ $affected_pkgs
<tr><td colspan="2">&nbsp;</td></tr>
<tr>
<td colspan="2" style="text-align:right; font-size:0.9em;">
- <p>Notes are stored in <a href="https://anonscm.debian.org/cgit/reproducible/notes.git">notes.git</a>.</p>
+ <p>Notes are stored in <a href="https://anonscm.debian.org/cgit/reproducible/notes.git" target="_parent">notes.git</a>.</p>
</td>
</tr>
</table>""".splitlines(True)))
@@ -199,7 +199,7 @@ def gen_html_note(note):
bugurls = ''
for bug in note['bugs']:
bugurls += '<a href="https://bugs.debian.org/' + str(bug) + \
- '">' + str(bug) + '</a><br />'
+ '" target="_parent">' + str(bug) + '</a><br />'
infos += note_bugs_html.substitute(bugs=bugurls)
# check for comments:
if 'comments' in note:
@@ -320,7 +320,7 @@ def index_issues(issues):
html += tab*2 + '</table>\n'
html += tab*2 + '<p>For a total of <b>' + str(len(notes)) + '</b> packages' \
+ ' categorized in <b>' + str(len(issues)) + '</b> issues.</p>'
- html += tab*2 + '<p>Notes are stored in <a href="https://anonscm.debian.org/cgit/reproducible/notes.git">notes.git</a>.</p>'
+ html += tab*2 + '<p>Notes are stored in <a href="https://anonscm.debian.org/cgit/reproducible/notes.git" target="_parent">notes.git</a>.</p>'
title = 'Overview of known issues related to reproducible builds'
destfile = BASE + '/index_issues.html'
desturl = REPRODUCIBLE_URL + '/index_issues.html'
@@ -352,7 +352,7 @@ def index_notes(notes):
html += get_trailing_icon(pkg, bugs) + '\n'
html += tab*3 + '</code>\n'
html += tab*2 + '</p>\n'
- html += tab*2 + '<p>Notes are stored in <a href="https://anonscm.debian.org/cgit/reproducible/notes.git">notes.git</a>.</p>'
+ html += tab*2 + '<p>Notes are stored in <a href="https://anonscm.debian.org/cgit/reproducible/notes.git" target="_parent">notes.git</a>.</p>'
title = 'Overview of packages with notes'
destfile = BASE + '/index_notes.html'
desturl = REPRODUCIBLE_URL + '/index_notes.html'