|
14 | 14 |
|
15 | 15 | <c:set value="<%=true%>" var="isReskin"/>
|
16 | 16 | <c:set value="<%=request.getAttribute("NUM_PENDING")%>" var="numPending" />
|
| 17 | +<c:set var="userHandle" value="<%= sessionInfo.getHandle() %>"/> |
| 18 | +<c:set var="userId" value="<%= sessionInfo.getUserId() %>"/> |
| 19 | +<c:set var="userImagePath" value="<%= sessionInfo.getImagePath() %>"/> |
| 20 | +<c:set var="userInitials" value="<%= sessionInfo.getHandle() %>"/> |
17 | 21 |
|
18 | 22 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
19 | 23 | <html>
|
|
27 | 31 | <jsp:param name="key" value="tc_stats"/>
|
28 | 32 | <jsp:param name="reskin" value="${isReskin ? 'paymentStatusSummary' : ''}"/>
|
29 | 33 | </jsp:include>
|
| 34 | + <div id="headerNav"></div> |
| 35 | + <script> |
| 36 | + var serverName = '<%=ApplicationServer.SERVER_NAME%>'; |
| 37 | + var prodUrl = 'topcoder.com'; |
| 38 | + var scriptURL = '//uni-nav.topcoder-dev.com/v1/tc-universal-nav.js'; |
| 39 | +
|
| 40 | + if (serverName === prodUrl) { |
| 41 | + scriptURL = '//uni-nav.topcoder.com/v1/tc-universal-nav.js'; |
| 42 | + } |
| 43 | +
|
| 44 | + !function(n,t,e,a,c,i,o){n['TcUnivNavConfig']=c,n[c]=n[c]||function(){ |
| 45 | + (n[c].q=n[c].q??[]).push(arguments)},n[c].l=1*new Date();i=t.createElement(e), |
| 46 | + o=t.getElementsByTagName(e)[0];i.async=1;i.type="module";i.src=a;o.parentNode.insertBefore(i,o) |
| 47 | + }(window,document,"script",scriptURL,"tcUniNav"); |
| 48 | +
|
| 49 | + var imagePath = '<%=sessionInfo.getImagePath()%>'; |
| 50 | + var photoUrl = imagePath; |
| 51 | + |
| 52 | + if(imagePath=='nullnull'){ |
| 53 | + photoUrl=undefined; |
| 54 | + } |
| 55 | +
|
| 56 | + var userId = ${userId}; |
| 57 | + var handle = '${userHandle}'; |
| 58 | + var initials = handle ? handle.substr(0, 2).toUpperCase() : ''; |
| 59 | +
|
| 60 | + var user = { |
| 61 | + photoUrl, |
| 62 | + userId, |
| 63 | + initials, |
| 64 | + handle |
| 65 | + }; |
| 66 | +
|
| 67 | + tcUniNav('init', 'headerNav', { |
| 68 | + type: 'tool', |
| 69 | + toolName: 'Topcoder Payments', |
| 70 | + user, |
| 71 | + toolRoot: '/PactsMemberServlet?module=PaymentHistory&full_list=true', |
| 72 | + signOut() { |
| 73 | + window.location.replace("http://" + serverName + "/tc?module=Logout"); |
| 74 | + } |
| 75 | + }); |
| 76 | +
|
| 77 | + tcUniNav('init', 'footerNav', { |
| 78 | + type: 'footer', |
| 79 | + }) |
| 80 | +
|
| 81 | + </script> |
30 | 82 |
|
31 | 83 | </head>
|
32 | 84 | <body>
|
|
35 | 87 | ResultSetContainer rsc = (ResultSetContainer) request.getAttribute(PaymentStatusSummary.PAYMENT_STATUS_SUMMARY);
|
36 | 88 | %>
|
37 | 89 |
|
38 |
| -<jsp:include page="../../top.jsp" > |
39 |
| - <jsp:param name="level1" value=""/> |
40 |
| - <jsp:param name="isReskin" value="${isReskin}"/> |
41 |
| -</jsp:include> |
42 | 90 |
|
43 | 91 | <c:if test="${isReskin}">
|
44 | 92 | <div class="page">
|
|
244 | 292 | </div><!-- // end .page -->
|
245 | 293 | </c:if>
|
246 | 294 |
|
247 |
| -<jsp:include page="/foot.jsp" > |
248 |
| - <jsp:param name="isReskin" value="${isReskin}"/> |
249 |
| -</jsp:include> |
| 295 | +<div id="footerNav"></div> |
250 | 296 |
|
251 | 297 | </body>
|
252 | 298 |
|
|
0 commit comments