Skip to content

Commit

Permalink
JENKINS-71919 Use modern icon class in subproject page (#357)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
  • Loading branch information
gjabouley-invn and MarkEWaite committed Nov 22, 2023
1 parent b7c8232 commit 1d07583
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ if (System.getProperty(DISABLE_ACTION_VIEWS_KEY) != null) {
return
}

def l = namespace(lib.LayoutTagLib)

def builds = my.triggeredBuilds
if(builds.size() > 0) {
h2("Subproject Builds")
Expand All @@ -18,8 +20,7 @@ if(builds.size() > 0) {
text(item.project.displayName)
}
a(href:"${rootURL}/${item.url}", class:"model-link") {
img(src:"${imagesURL}/16x16/${item.buildStatusUrl}",
alt:"${item.iconColor.description}", height:"16", width:"16")
l.icon(class: "${item.iconColor.iconClassName} icon-sm", alt:"${item.iconColor.description}")
text(item.displayName)
}
}
Expand Down

0 comments on commit 1d07583

Please sign in to comment.