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

added redirect #26

Merged
merged 1 commit into from
May 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%@ page contentType="text/html;charset=utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<%@ page contentType="text/html;charset=utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ page contentType="text/html;charset=utf-8" %>
Expand Down Expand Up @@ -31,191 +31,12 @@
</head>

<body>

<jsp:include page="top.jsp" >
<jsp:param name="level1" value="long"/>
</jsp:include>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr valign="top">
<%-- Left Column Begins--%>
<td width="180">
<jsp:include page="includes/global_left.jsp">
<jsp:param name="node" value="long_compete"/>
</jsp:include>
</td>
<%-- Left Column Ends --%>

<%-- Center Column Begins --%>
<td width="100%" align="left" class="bodyColumn">

<jsp:include page="page_title.jsp">
<jsp:param name="image" value="long_comps_topcoder"/>
<jsp:param name="title" value="Active Contests"/>
</jsp:include>

<div align="right" style="margin: 6px 0px;">
<a href="/longcontest/?module=Static&amp;d1=instructions"><img src="/i/interface/getStarted.png" alt="Need help? Learn how to get started" /></a><br /><br />
<br />
</div>

<%-- MM Promo On/Off--%>
<div align="right" style="margin: 6px 0px;">


</div>


<table cellpadding="0" cellspacing="0" border="0" width="100%" class="stat">

<tr>
<td class="title" colspan="8">Active Contests</td>
</tr>
<tr>
<td class="header">Contest</td>
<td class="header" colspan="2">Problem</td>
<td class="headerC">Registrants</td>
<td class="headerC">Competitors</td>
<td class="headerC">Submissions</td>
<td class="headerC" nowrap="nowrap">Start Time</td>
<td class="headerC" nowrap="nowrap">End Time</td>
</tr>

<c:set value="<%=RoundType.MARATHON%>" var="mmRoundType"/>
<c:set value="<%=RoundType.MARATHON_QA%>" var="mmQARoundType"/>
<%boolean even = true;%>
<logic:iterate name="<%=Constants.CONTEST_LIST_KEY%>" id="contest">

<!-- EXCLUDE LEGACY CMAP MATCH -->
<logic:notEqual name="contest" property="roundID" value="17391">

<tr class="<%=even?"light":"dark"%>">
<td class="value">
<% pageContext.setAttribute("sponsorImage", ((LongContest) contest).getSponsorImage());%>
<div style="float: right; margin-left: 4px;">
<ci:sponsorImage image="sponsorImage" alt="Sponsor" border="0" ifNull=""/></div>
<c:choose>
<c:when test="${mmRoundType==contest.roundTypeId || mmQARoundType==contest.roundTypeId}">
<a href="/tc?module=MatchDetails&amp;<%=Constants.ROUND_ID%>=${contest.roundID}" >
<mm:contest roundTypeId="${contest.roundTypeId}" contestName="${contest.contestName}" roundName="${contest.contestName} - ${contest.roundName}" />
</a>
</c:when>
<c:otherwise>
<mm:contest roundTypeId="${contest.roundTypeId}" contestName="${contest.contestName}" roundName="${contest.roundName}" />
</c:otherwise>
</c:choose>
<div style="margin: 6px 10px;">
<logic:notEqual name="contest" property="forumId" value="0">
<tc-webtag:forumLink forumID="<%=((LongContest)contest).getForumId()%>" message="discuss"/> |
</logic:notEqual>
<a href="<jsp:getProperty name="sessionInfo" property="servletPath"/>?module=ViewStandings&amp;<%=Constants.ROUND_ID%>=<tc-webtag:beanWrite name="contest" property="roundID"/>">standings</a>
</div>
</td>
<td class="value">
<a href="<jsp:getProperty name="sessionInfo" property="servletPath"/>?module=ViewProblemStatement&amp;<%=Constants.COMPONENT_ID%>=<tc-webtag:beanWrite name="contest" property="componentID"/>&amp;<%=Constants.ROUND_ID%>=<tc-webtag:beanWrite name="contest" property="roundID"/>" >
<tc-webtag:beanWrite name="contest" property="problemName"/>
</a>
</td>
<td class="valueC">
<c:choose>
<c:when test="${isAnonymous}">
<a href="<jsp:getProperty name="sessionInfo" property="servletPath"/>?module=ViewReg&amp;<%=Constants.ROUND_ID%>=<tc-webtag:beanWrite name="contest" property="roundID"/>"
>Register/Submit</a>
</c:when>
<c:otherwise>
<logic:equal name="contest" property="passed" value="false">
<logic:equal name="contest" property="coderRegistered" value="false">
<a href="<jsp:getProperty name="sessionInfo" property="servletPath"/>?module=ViewReg&amp;<%=Constants.ROUND_ID%>=<tc-webtag:beanWrite name="contest" property="roundID"/>"
>Register</a>
</logic:equal>
<logic:notEqual name="contest" property="coderRegistered" value="false">
<a href="<jsp:getProperty name="sessionInfo" property="servletPath"/>?module=Submit&amp;<%=Constants.COMPONENT_ID%>=<tc-webtag:beanWrite name="contest" property="componentID"/>&amp;<%=Constants.ROUND_ID%>=<tc-webtag:beanWrite name="contest" property="roundID"/>&amp;<%=Constants.CONTEST_ID%>=<tc-webtag:beanWrite name="contest" property="contestID"/>"
>Submit</a>
</logic:notEqual>
</logic:equal>
</c:otherwise>
</c:choose>
</td>
<td class="valueC" align="center">
<a href="<jsp:getProperty name="sessionInfo" property="servletPath"/>?module=ViewRegistrants&amp;<%=Constants.ROUND_ID%>=<tc-webtag:beanWrite name="contest" property="roundID"/>" >
<tc-webtag:beanWrite name="contest" property="numRegistrants"/></a></td>
<td class="valueC" align="center">
<tc-webtag:beanWrite name="contest" property="numCompetitors"/></td>
<td class="valueC" align="center">
<tc-webtag:beanWrite name="contest" property="submissionCount"/></td>
<td class="valueC" align="center" nowrap="nowrap">
<tc-webtag:beanWrite name="contest" property="startTime"
format="'<strong>'MM.dd.yyyy'</strong><br />'HH:mm z"/></td>
<td class="valueC" align="center" nowrap="nowrap">
<tc-webtag:beanWrite name="contest" property="endTime"
format="'<strong>'MM.dd.yyyy'</strong><br />'HH:mm z"/></td>

</tr>
<%even = !even;%>

<!-- ADDED TO EXCLUDE ROUNDS -->
</logic:notEqual>

</logic:iterate>

<!-- ADDED TO SHOW NEW MATCH ON THE LEGACY PAGE -->
<tr class="dark">
<td class="value">
<div style="float: right; margin-left: 4px;">
</div>
<a href="https://www.topcoder.com/challenges/30076905">CMap: DPeak Challenge</a>
<div style="margin: 6px 10px;">
<a href="https://www.topcoder.com/challenges/30076905?tab=submissions">standings</a>
</div>
</td>
<td class="value">
<a href="https://www.topcoder.com/challenges/30076905?tab=registrants">CMap: DPeak Challenge</a>
</td>
<td class="valueC">
<a href="https://www.topcoder.com/challenges/30076905">Register</a>
</td>
<td class="valueC" align="center">
<a href=""></a>
</td>
<td class="valueC" align="center"></td>
<td class="valueC" align="center"></td>
<td class="valueC" align="center" nowrap="nowrap"><strong>12.14.2018</strong><br>11:03 EST</td>
<td class="valueC" align="center" nowrap="nowrap"><strong>01.04.2019</strong><br>08:58 EST</td>
</tr>


<logic:empty name="<%=Constants.CONTEST_LIST_KEY%>">
<tr class="light">
<td class="valueC" colspan="8">
<div align="center" style="margin: 40px 0px 40px 0px;">
There are currently no active contests, but check back soon.
</div>
</td>
</tr>
</logic:empty>
</table>

<!-- <div align="center" style="margin:10px;">
<a href="javascript:arena();"><img src="/i/longcontest/launchArena.png" alt="Launch Arena" /></a>
</div> -->

</td>
<%-- Center Column Ends --%>

<%-- Right Column Begins --%>
<td width="170">
<jsp:include page="public_right.jsp">
<jsp:param name="level1" value="branded"/>
</jsp:include>
</td>
<%-- Right Column Ends --%>

</tr>
</tbody>
</table>

<jsp:include page="foot.jsp" />
<%
// New location to be redirected
String site = new String("https://www.topcoder.com/challenges/?filter[tracks][data_science]=true");
response.setStatus(response.SC_MOVED_PERMANENTLY);
response.setHeader("Location", site);
%>

</body>

Expand Down