diff --git a/internal/html/repo_commit.go b/internal/html/repo_commit.go index 93bc55c555b6f51d29c1589ce9032ab10c1dd198..2a909dbd19ec14c9e5c868431d68cb7e00552987 100644 --- a/internal/html/repo_commit.go +++ b/internal/html/repo_commit.go @@ -51,7 +51,7 @@ Text(" "), If(file.From.Path != "", A(Class("underline decoration-text/50 decoration-dashed hover:decoration-solid"), Href(fmt.Sprintf("/%s/tree/%s/%s", rcc.RepoHeaderComponentContext.Name, file.From.Commit, file.From.Path)), Text(file.From.Path)), ), - If(file.From.Path != "" && file.To.Path != "", Text(" → ")), + If(file.From.Path != file.To.Path, Text(" → ")), If(file.To.Path != "", A(Class("underline decoration-text/50 decoration-dashed hover:decoration-solid"), Href(fmt.Sprintf("/%s/tree/%s/%s", rcc.RepoHeaderComponentContext.Name, file.To.Commit, file.To.Path)), Text(file.To.Path)), ),