[Git][security-tracker-team/security-tracker][master] Make the security tracker relocatable to another base URL
Raphaël Hertzog
hertzog at debian.org
Thu May 31 09:16:01 BST 2018
Raphaël Hertzog pushed to branch master at Debian Security Tracker / security-tracker
Commits:
1aa1b21e by Raphaël Hertzog at 2018-05-31T10:12:49+02:00
Make the security tracker relocatable to another base URL
Hosting the tracker at an URL different from /tracker/ was not possible
without these changes. There's still one small glitch left with the
hardcoding of /tracker/logo.png in static/style.css.
- - - - -
1 changed file:
- bin/tracker_service.py
Changes:
=====================================
bin/tracker_service.py
=====================================
--- a/bin/tracker_service.py
+++ b/bin/tracker_service.py
@@ -121,11 +121,6 @@ class BugFilter:
return no_dsa_reason == 'postponed' and not self.params['nopostponed']
class TrackerService(webservice_base_class):
- head_contents = compose(
- LINK(' ', href="/tracker/style.css"),
- SCRIPT(' ', src="/tracker/script.js"),
- ).toHTML()
-
nvd_text = P('''If a "**" is included, the urgency field was automatically
assigned by the NVD (National Vulnerability Database). Note that this
rating is automatically derived from a set of known factors about the
@@ -1492,8 +1487,12 @@ Debian bug number.'''),
on_load = "selectSearch()"
else:
on_load = None
+ head_contents = compose(
+ LINK(' ', href=url.scriptRelative("style.css")),
+ SCRIPT(' ', src=url.scriptRelative("script.js")),
+ ).toHTML()
return HTMLResult(self.add_title(title, body,
- head_contents=self.head_contents,
+ head_contents=head_contents,
body_attribs={'onload': on_load}),
doctype=self.html_dtd(),
status=status)
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/1aa1b21eeddbf4da94d35e8edeb8d397157d3ac2
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/1aa1b21eeddbf4da94d35e8edeb8d397157d3ac2
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20180531/beadcec7/attachment-0001.html>
More information about the debian-security-tracker-commits
mailing list