Skip to content

Commit

Permalink
improve the UIX promotions page (#271)
Browse files Browse the repository at this point in the history
* improve the UIX promotions page

* add container div
  • Loading branch information
Spyna authored Jan 4, 2024
1 parent 6929ca7 commit 5327e6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<!-- list promotions that are already attained -->
<j:forEach var="p" items="${it.promotions}">
<j:if test="${p.getProcess()!=null and p.getProcess().isVisible()}">
<div class="promotion">
<h2>
<img src="${resURL}/plugin/promoted-builds/icons/${p.getProcess().getIcon()}.svg" height="32px"/>
<a href="../../promotion/process/${p.name}" class="model-link">${p.name}</a>
Expand All @@ -28,7 +29,7 @@
<td>
<a href="${p.name}/promotionBuild/${attempt.number}/console">
<l:icon class="${attempt.iconColor.iconClassName} icon-sm"
alt="${attempt.iconColor.description}"/> ${attempt.displayName} (${attempt.timestamp.time})
alt="${attempt.iconColor.description}"/> ${attempt.displayName} (${attempt.timestamp.time})
</a> by ${attempt.userName}
</td>
</tr>
Expand Down Expand Up @@ -86,11 +87,13 @@
</j:choose>
</div>
<div style="clear:both" />
</div>
</j:if>
</j:forEach>
<!-- list promotions that are not yet attained -->
<j:forEach var="p" items="${it.pendingPromotions}">
<j:if test="${p.isVisible()}">
<div class="promotion">
<h2>
<img src="${resURL}/plugin/promoted-builds/icons/${p.getIcon()}.svg" height="32px"/>
<a href="../../promotion/process/${p.name}" class="model-link">${p.name}</a>
Expand Down Expand Up @@ -124,6 +127,7 @@
<j:set var="pba" value="${it}"/>
<st:include it="${c}" page="index.jelly" />
</j:forEach>
</div>
</j:if>
</j:forEach>
</div>
Expand Down
6 changes: 6 additions & 0 deletions src/main/webapp/css/promoted-builds.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.promotion {
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
padding: 16px;
margin: 16px 4px;
}

.promoted-builds {
overflow: hidden;
}
Expand Down

0 comments on commit 5327e6e

Please sign in to comment.