add links to specific bugs

A long awaited feature for ER, actually support linking directly to a
specific bug, which is far more helpful in having conversations with
people.

Change-Id: I70f5658f1885a0e7d9d6276bbd4dbc0c768d761d
This commit is contained in:
Sean Dague 2014-09-29 19:04:32 -04:00
parent 032cce34fd
commit 490cf10703
3 changed files with 8 additions and 2 deletions

View File

@ -57,7 +57,7 @@
javascript sane again! --> javascript sane again! -->
<script id="bug-template" type="text/x-handlebars-template"> <script id="bug-template" type="text/x-handlebars-template">
<div id="bug-{{bug.number}}" class="bug-container"> <div id="bug-{{bug.number}}" class="bug-container">
<h2>Bug {{bug.number}} - {{bug.bug_data.name}}</h2> <h2><a name="{{bug.number}}" href="#{{bug.number}}">Bug {{bug.number}} - {{bug.bug_data.name}}></a></h2>
<h3>{{bug.fails24}} fails in 24 hrs / {{bug.fails}} fails in <h3>{{bug.fails24}} fails in 24 hrs / {{bug.fails}} fails in
10 days</h3> 10 days</h3>
<h3>Projects: {{bug.bug_data.affects}}</h3> <h3>Projects: {{bug.bug_data.affects}}</h3>

View File

@ -60,7 +60,7 @@
javascript sane again! --> javascript sane again! -->
<script id="bug-template" type="text/x-handlebars-template"> <script id="bug-template" type="text/x-handlebars-template">
<div id="bug-{{bug.number}}" class="bug-container"> <div id="bug-{{bug.number}}" class="bug-container">
<h2>Bug {{bug.number}} - {{bug.bug_data.name}}</h2> <h2><a name="{{bug.number}}" href="#{{bug.number}}">Bug {{bug.number}} - {{bug.bug_data.name}}></a></h2>
<h3>{{bug.fails24}} fails in 24 hrs / {{bug.fails}} fails in <h3>{{bug.fails24}} fails in 24 hrs / {{bug.fails}} fails in
10 days</h3> 10 days</h3>
<h3>Projects: {{bug.bug_data.affects}}</h3> <h3>Projects: {{bug.bug_data.affects}}</h3>

View File

@ -17,6 +17,12 @@ table {
h2 { h2 {
padding-top: 1em; padding-top: 1em;
} }
/** keep the h2 color even if it's a link */
h2 a, h2 a:visited {
color: inherit;
}
h3 { h3 {
font-size: 1.1em; font-size: 1.1em;
} }