Skip to content

Commit

Permalink
Issue mozilla#48: add a nice title to the bugzilla result pages so as…
Browse files Browse the repository at this point in the history
… that we know what the search is about
  • Loading branch information
pascalchevrel committed Jul 24, 2019
1 parent eaa92df commit c3270d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/releasehealth.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ class ReleaseHealth {
* Display the measures with a placeholder.
*/
displayMeasures() {
for (const { id, title, url } of this.config.bugQueries) {
for (let { id, title, url } of this.config.bugQueries) {
var firefox = this.config.channels[this.channel];
url += encodeURI(`&title=${firefox.title} ${firefox.version}: ${title}`);
document.querySelector(`#${id}`).innerHTML =
`<h2>${title}</h2><a class="data greyedout" href="${this.config.BUGZILLA_URL}${url}">?</a>`;
}
Expand Down

0 comments on commit c3270d3

Please sign in to comment.