dashboard/app: Add anchor links for BugNamespaces

To make it possible to provide URLs that jump to a specific BugNamespace,
this adds clickable anchors for each of the BugNamespaces without changing
the current appearance of the h2 tag.
This commit is contained in:
Kees Cook 2018-08-22 21:28:01 -07:00 committed by Dmitry Vyukov
parent 95b5c82b28
commit 9b0f5c758d
2 changed files with 5 additions and 1 deletions

View File

@ -111,7 +111,7 @@ Main page.
{{range $ns := $.BugNamespaces}}
<br>
<h2 id="{{$ns.Name}}">{{$ns.Caption}}</h2>
<a class="plain" href="#{{$ns.Name}}"><h2 id="{{$ns.Name}}">{{$ns.Caption}}</h2></a>
{{if $ns.FixedLink}}
{{if $ns.CoverLink}}
<a href="{{$ns.CoverLink}}" target="_blank">source coverage</a> |

View File

@ -127,6 +127,10 @@ table td, table th {
font-weight: bold;
}
.plain {
text-decoration: none;
}
textarea {
width:100%;
font-family: monospace;