Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 48d69d6

Browse files
committed
reskin-payment: number on pending tab
1 parent 8d94009 commit 48d69d6

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

src/main/com/topcoder/web/tc/view/pacts/client/PaymentHistory.jsp

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,20 @@
226226
<nav class="tabs paymentHistoryTabs">
227227
<c:if test="${fullList}" >
228228
<span class="item active">View all</span>
229-
<a href="/PactsMemberServlet?module=PaymentHistory&full_list=false" class="bcLink item">View pending<span class="view-pending-badge">${numPending}</span></a>
229+
<a href="/PactsMemberServlet?module=PaymentHistory&full_list=false" class="bcLink item">View pending
230+
<c:if test="${numPending ne 0}">
231+
<span class="view-pending-badge">${numPending}</span>
232+
</c:if>
233+
</a>
230234
<a href="/PactsMemberServlet?module=PaymentStatusSummary" class="bcLink item">Payments Summary</a>
231235
</c:if>
232236
<c:if test="${not fullList}" >
233237
<a href="/PactsMemberServlet?module=PaymentHistory&full_list=true" class="bcLink item">View all</a>
234-
<span class="item active">View pending<span class="view-pending-badge">${numPending}</span></span>
238+
<span class="item active">View pending
239+
<c:if test="${numPending ne 0}">
240+
<span class="view-pending-badge">${numPending}</span>
241+
</c:if>
242+
</span>
235243
<a href="/PactsMemberServlet?module=PaymentStatusSummary" class="bcLink item">Payments Summary</a>
236244
</c:if>
237245
</nav>
@@ -242,6 +250,11 @@
242250
<button class="dropdown-toggle" type="button" onclick="onDropdownToggleClick()" id="paymentHistory-dropdown-toggle">
243251
<span class="toggle-value">
244252
${fullList ? 'View all' : 'View pending'}
253+
<c:if test="${not fullList}">
254+
<c:if test="${numPending ne 0}">
255+
<span class="view-pending-badge">${numPending}</span>
256+
</c:if>
257+
</c:if>
245258
</span>
246259
<i class="icon icon-arrow-down"></i>
247260
</button>
@@ -251,6 +264,9 @@
251264
</a>
252265
<a href="/PactsMemberServlet?module=PaymentHistory&full_list=false" class="bcLink item ${fullList ? '' : 'active'}">
253266
View pending
267+
<c:if test="${numPending ne 0}">
268+
<span class="view-pending-badge">${numPending}</span>
269+
</c:if>
254270
</a>
255271
<a href="/PactsMemberServlet?module=PaymentStatusSummary" class="bcLink item">
256272
Payments Summary

src/main/com/topcoder/web/tc/view/pacts/client/PaymentStatusSummary.jsp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@
9898
<%-- desktop tabs --%>
9999
<nav class="tabs paymentHistoryTabs">
100100
<a href="/PactsMemberServlet?module=PaymentHistory&full_list=true" class="bcLink item">View all</a>
101-
<a href="/PactsMemberServlet?module=PaymentHistory&full_list=false" class="bcLink item">View pending<span class="view-pending-badge">${numPending}</span></a>
101+
<a href="/PactsMemberServlet?module=PaymentHistory&full_list=false" class="bcLink item">View pending
102+
<c:if test="${numPending ne 0}">
103+
<span class="view-pending-badge">${numPending}</span>
104+
</c:if>
105+
</a>
102106
<a href="/PactsMemberServlet?module=PaymentStatusSummary" class="bcLink item active">Payments Summary</a>
103107
</nav>
104108

@@ -115,7 +119,10 @@
115119
View all
116120
</a>
117121
<a href="/PactsMemberServlet?module=PaymentHistory&full_list=false" class="bcLink item">
118-
View pending<span class="view-pending-badge">${numPending}</span>
122+
View pending
123+
<c:if test="${numPending ne 0}">
124+
<span class="view-pending-badge">${numPending}</span>
125+
</c:if>
119126
</a>
120127
<a href="/PactsMemberServlet?module=PaymentStatusSummary" class="bcLink item active">
121128
Payments Summary

0 commit comments

Comments
 (0)