diff --git a/appview/pages/templates/repo/fragments/diff.html b/appview/pages/templates/repo/fragments/diff.html index 65aac0d5..e237f56b 100644 --- a/appview/pages/templates/repo/fragments/diff.html +++ b/appview/pages/templates/repo/fragments/diff.html @@ -37,41 +37,42 @@
-
- {{ $markerstyle := "diff-type p-1 mr-1 font-mono text-sm rounded select-none" }} +
+
+ {{ $markerstyle := "diff-type p-1 mr-1 font-mono text-sm rounded select-none" }} + {{ if .IsNew }} + ADDED + {{ else if .IsDelete }} + DELETED + {{ else if .IsCopy }} + COPIED + {{ else if .IsRename }} + RENAMED + {{ else }} + MODIFIED + {{ end }} -
- {{ if .IsNew }} - ADDED - {{ else if .IsDelete }} - DELETED - {{ else if .IsCopy }} - COPIED - {{ else if .IsRename }} - RENAMED - {{ else }} - MODIFIED - {{ end }} - - {{ block "statPill" .Stats }} {{ end }} + {{ block "statPill" .Stats }} {{ end }} +
- {{ if .IsDelete }} - - {{ .Name.Old }} - - {{ else if (or .IsCopy .IsRename) }} - - {{ .Name.Old }} - - {{ i "arrow-right" "w-4 h-4" }} - - {{ .Name.New }} - - {{ else }} - - {{ .Name.New }} - - {{ end }} +
+ {{ if .IsDelete }} + + {{ .Name.Old }} + + {{ else if (or .IsCopy .IsRename) }} + + {{ .Name.Old }} + + {{ i "arrow-right" "w-4 h-4" }} + + {{ .Name.New }} + + {{ else }} + + {{ .Name.New }} + + {{ end }}
@@ -172,4 +173,4 @@ -{{ .Deletions }} {{ end }}
-{{ end }} \ No newline at end of file +{{ end }}