diff --git a/static/scripts/tools-install.js b/static/scripts/tools-install.js index 3283aad5e..6b353d4b5 100644 --- a/static/scripts/tools-install.js +++ b/static/scripts/tools-install.js @@ -157,8 +157,23 @@ function set_up_cycle_button() { function fill_in_bug_report_values() { var nav_plat = document.getElementById("nav-plat"); var nav_app = document.getElementById("nav-app"); + var report_link = document.getElementById("report-unknown-platform-link"); nav_plat.textContent = navigator.platform; nav_app.textContent = navigator.appVersion; + var issue_template = `\ + + +navigator.platform: \`${navigator.platform}\` +navigator.appVersion: \`${navigator.appVersion}\` + +The website did not recognize the platform I'm on, so I am unable to install rustup.`; + report_link.href = "https://github.com/rust-lang/www.rust-lang.org/issues/new?title=Unrecognized%20platform&body=" + encodeURIComponent(issue_template); } var override_map = new Map ([ diff --git a/templates/components/tools/rustup.html.hbs b/templates/components/tools/rustup.html.hbs index bfe881d79..16e2964a0 100644 --- a/templates/components/tools/rustup.html.hbs +++ b/templates/components/tools/rustup.html.hbs @@ -33,7 +33,14 @@
- {{fluent "tools-rustup-report"}} + + + {{fluent "tools-rustup-report"}} +