2 vim:ts=4:sw=4:expandtab
6 <title>Debian Code Search: {{.filename}}
</title>
7 <link rel=
"stylesheet" href=
"debcodesearch.min.css">
8 <style type=
"text/css">
10 /* We need to make sure that the line numbers and the code itself have
11 no padding/margin so the positions match. The !important is to
12 overwrite the style set by highlight.js’s stylesheet. */
14 padding: 0 !important
;
23 width: {{.lnrwidth
}}em
;
26 <link rel=
"stylesheet" href=
"/highlightjs-default.min.css">
27 <script src=
"/highlightjs.min.js"></script>
32 <div id=
"upperheader">
34 <a href=
"./" title=
"Debian Home"><img src=
"/Pics/openlogo-50.svg" alt=
"Debian" width=
"50" height=
"61"></a>
35 </div> <!-- end logo -->
36 <p class=
"section"><a href=
"/">Code Search
</a></p>
37 </div> <!-- end upperheader -->
40 <p class=
"hidecss"><a href=
"#content">Skip Quicknav
</a></p>
42 <li><a href=
"./">Search
</a></li>
43 <li><a href=
"./about">About Code Search
</a></li>
44 <li><a href=
"./faq">FAQ
</a></li>
46 </div> <!-- end navbar -->
47 <p id=
"breadcrumbs"> show source
</p>
48 </div> <!-- end header -->
52 <h2>Source of {{.filename}}
</h2>
54 <!-- Line numbers on the left of the source code -->
55 <div class=
"lnr"><pre>{{range $idx, $line := .numbers}}{{ if eq $line $.line }}
<span style=
"font-weight: bold; background-color: #333; color: #fff">{{ end }}
<a id=
"L{{$line}}"><span id=
"L{{$line}}"></a>{{$line}}
</span>{{ if eq $line $.line }}
</span>{{ end }}
58 <!-- The source code itself -->
59 <pre><code>{{range $idx, $line := .lines}}{{$line}}
63 <script>hljs
.initHighlightingOnLoad();</script>
64 {{ template
"footer.html" . }}