diff --git a/appview/pages/templates/repo/commit.html b/appview/pages/templates/repo/commit.html index 27e7601..94fdf27 100644 --- a/appview/pages/templates/repo/commit.html +++ b/appview/pages/templates/repo/commit.html @@ -39,15 +39,18 @@
Not showing binary file.
- {{ else }} -
- {{- range .TextFragments -}}
- {{ .Header }}
- {{- range .Lines -}}
- {{- if eq .Op.String "+" -}}
- {{ .Op.String }}{{ .Line }}
- {{- end -}}
-
- {{- if eq .Op.String "-" -}}
- {{ .Op.String }}{{ .Line }}
- {{- end -}}
-
- {{- if eq .Op.String " " -}}
- {{ .Op.String }}{{ .Line }}
- {{- end -}}
-
- {{- end -}}
+
+
+ {{ if .IsDelete }}
+ This file as been deleted.
+ {{ else }}
+ {{ if .IsBinary }}
+ Not showing binary file.
+ {{ else }}
+
+ {{- range .TextFragments -}}
+ {{ .Header }}
+ {{- range .Lines -}}
+ {{- if eq .Op.String "+" -}}
+ {{ .Op.String }}{{ .Line }}
+ {{- end -}}
+
+ {{- if eq .Op.String "-" -}}
+ {{ .Op.String }}{{ .Line }}
+ {{- end -}}
+
+ {{- if eq .Op.String " " -}}
+ {{ .Op.String }}{{ .Line }}
+ {{- end -}}
+
+ {{- end -}}
+ {{- end -}}
+
{{- end -}}
-
- {{- end -}}
+ {{- end -}}
diff --git a/appview/pages/templates/repo/settings.html b/appview/pages/templates/repo/settings.html
index 1513f54..e0cfcb7 100644
--- a/appview/pages/templates/repo/settings.html
+++ b/appview/pages/templates/repo/settings.html
@@ -1,6 +1,6 @@
{{ define "title" }}settings · {{ .RepoInfo.FullName }}{{ end }}
{{ define "repoContent" }}
-