diff --git a/appview/pages/templates/layouts/base.html b/appview/pages/templates/layouts/base.html index 3ff47e6..96da664 100644 --- a/appview/pages/templates/layouts/base.html +++ b/appview/pages/templates/layouts/base.html @@ -18,6 +18,10 @@ {{ end }}
{{ block "content" . }}{{ end }}
+ + {{ end }} diff --git a/appview/pages/templates/repo/blob.html b/appview/pages/templates/repo/blob.html index 3738a53..aa1b031 100644 --- a/appview/pages/templates/repo/blob.html +++ b/appview/pages/templates/repo/blob.html @@ -2,8 +2,8 @@ {{ $lines := split .Contents }} {{ $tot_lines := len $lines }} {{ $tot_chars := len (printf "%d" $tot_lines) }} -{{ $code_number_style := "code-line-num text-gray-400 mr-2 px-1 sticky left-0 bg-white border-r border-black text-right w-[{{$tot_chars}}rem]" }} +{{ $code_number_style := "code-line-num text-gray-400 mr-2 px-1 sticky left-0 bg-white border-r border-black text-right" }}
{{ range $idx, $line := $lines }}
-  {{ add $idx 1 }}
+  {{ add $idx 1 }}
   {{ $line }}{{ else }}this file is empty{{ end }}
{{ end }} diff --git a/appview/pages/templates/repo/index.html b/appview/pages/templates/repo/index.html index e497ee9..eefb81b 100644 --- a/appview/pages/templates/repo/index.html +++ b/appview/pages/templates/repo/index.html @@ -5,14 +5,18 @@ this repo is empty {{ else }}
-
+
{{ $containerstyle := "py-1" }} {{ $linkstyle := "no-underline hover:underline" }} {{ range .Files }} {{ if not .IsFile }} {{ end }} {{ end }} @@ -20,12 +24,16 @@ {{ range .Files }} {{ if .IsFile }} {{ end }} {{ end }}
-
+
{{ range .Commits }}
10 { + commits = commits[:10] + } var readmeContent template.HTML for _, readme := range h.c.Repo.Readme {