diff --git a/appview/pages/pages.go b/appview/pages/pages.go
index d89add7a..2c091ad1 100644
--- a/appview/pages/pages.go
+++ b/appview/pages/pages.go
@@ -14,6 +14,7 @@ import (
"path/filepath"
"strings"
+ "github.com/alecthomas/chroma/v2"
chromahtml "github.com/alecthomas/chroma/v2/formatters/html"
"github.com/alecthomas/chroma/v2/lexers"
"github.com/alecthomas/chroma/v2/styles"
@@ -364,9 +365,13 @@ type RepoBlobParams struct {
}
func (p *Pages) RepoBlob(w io.Writer, params RepoBlobParams) error {
+ style := styles.Get("bw")
+ b := style.Builder()
+ b.Add(chroma.LiteralString, "noitalic")
+ style, _ = b.Build()
+
if params.Lines < 5000 {
c := params.Contents
- style := styles.Get("bw")
formatter := chromahtml.New(
chromahtml.InlineCode(true),
chromahtml.WithLineNumbers(true),
diff --git a/appview/pages/templates/layouts/topbar.html b/appview/pages/templates/layouts/topbar.html
index 7f6d37b1..df6115c8 100644
--- a/appview/pages/templates/layouts/topbar.html
+++ b/appview/pages/templates/layouts/topbar.html
@@ -1,50 +1,28 @@
{{ define "layouts/topbar" }}
- {{ with .LoggedInUser }}
-
- {{ else }}
- login
- {{ end }}
+ {{ $linkstyle := "text-gray-400 hover:text-gray-900 no-underline" }}
+
{{ end }}
diff --git a/appview/pages/templates/repo/commit.html b/appview/pages/templates/repo/commit.html
index e81f73a1..93b64801 100644
--- a/appview/pages/templates/repo/commit.html
+++ b/appview/pages/templates/repo/commit.html
@@ -109,7 +109,6 @@
{{- range .TextFragments -}}
{{ .Header }}
-
{{- range .Lines -}}
{{- if eq .Op.String "+" -}}
{{ .Op.String }}{{ .Line }}
diff --git a/appview/pages/templates/repo/index.html b/appview/pages/templates/repo/index.html
index bcc9bdec..800c7196 100644
--- a/appview/pages/templates/repo/index.html
+++ b/appview/pages/templates/repo/index.html
@@ -13,7 +13,7 @@
onchange="window.location.href = '/{{ .RepoInfo.FullName }}/tree/' + this.value"
class="p-1 border border-gray-500 bg-white"
>
-