diff --git a/.air/appview.toml b/.air/appview.toml index a669704d..194bd8d2 100644 --- a/.air/appview.toml +++ b/.air/appview.toml @@ -4,5 +4,5 @@ bin = ".bin/app" root = "." exclude_regex = [".*_templ.go"] -include_ext = ["go", "templ"] +include_ext = ["go", "templ", "html"] exclude_dir = ["target", "atrium"] diff --git a/appview/pages/layout.html b/appview/pages/layout.html deleted file mode 100644 index 18d28f77..00000000 --- a/appview/pages/layout.html +++ /dev/null @@ -1,20 +0,0 @@ - - -
- - - -Hello world!
+This is a simple HTML example
+{{- .commit.Message -}}
+ Not showing binary file.
+ {{ else }} +
+ {{- range .TextFragments -}}
+ {{- .Header -}}
+ {{- range .Lines -}}
+ {{- if eq .Op.String "+" -}}
+ {{ .String }}
+ {{- end -}}
+ {{- if eq .Op.String "-" -}}
+ {{ .String }}
+ {{- end -}}
+ {{- if eq .Op.String " " -}}
+ {{ .String }}
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+
+ This is an empty Git repository. Push some commits here.
+{{ .path }} (view raw)
+ {{if .chroma }} +
+
+ {{- range .linecount }}
+ {{ . }}
+ {{- end -}}
+
+ |
+
+
+ {{- .content -}}
+
+ |
+
{{ .Message }}
+ {{ .Message }}
+
+git clone https://{{ .servername }}/{{ .name }}
+
+
+ {{- if .readme }}{{ .readme }}{{- end -}}
+
+