all repos — legit @ 34521a5bc308c168d43f168e325ac4f43d5dd835

web frontend for git, written in go

routes: add syntax highlight

Gabriel A. Giovanini
commit

34521a5bc308c168d43f168e325ac4f43d5dd835

parent

de182443db91ca71508c3466418bcdf1fe09531f

1 file changed, 7 insertions(+), 1 deletion(-)

changed files
M templates/file.htmltemplates/file.html
@@ -6,8 +6,13 @@ <body>
{{ template "nav" . }} <main> <p>{{ .path }} (<a style="color: gray" href="?raw=true">view raw</a>)</p> + {{if .chroma }} + <div class="chroma-file-wrapper"> + {{ .content }} + </div> + {{else}} <div class="file-wrapper"> - <table > + <table> <tbody><tr> <td class="line-numbers"> <pre>
@@ -24,6 +29,7 @@ </td>
</tbody></tr> </table> </div> + {{end}} </main> </body> </html>