From 5c4df1d57e1ef97bb79de15685ceb23b89b0fe39 Mon Sep 17 00:00:00 2001 From: Shnick <1132919+Shnick@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:33:15 +0100 Subject: [PATCH] BDOG-3219 improve git compare link disaply text - based on number of commits and display limit --- .../deployments/view/evaluationsPartial.scala.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/uk/gov/hmrc/cataloguefrontend/deployments/view/evaluationsPartial.scala.html b/app/uk/gov/hmrc/cataloguefrontend/deployments/view/evaluationsPartial.scala.html index 676daac8c..f914285bf 100644 --- a/app/uk/gov/hmrc/cataloguefrontend/deployments/view/evaluationsPartial.scala.html +++ b/app/uk/gov/hmrc/cataloguefrontend/deployments/view/evaluationsPartial.scala.html @@ -82,7 +82,11 @@
github badge - See more commits + @if(compare.totalCommits > compare.commits.size) { + See more commits + } else { + See on GitHub + }