Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/js/app/challenges/jsx/build/challenge-grid-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
return (
React.createElement("div", {className: "contest "+ trackTag +" trackSD type-" + challenge.challengeCommunity, key: challenge.challengeId},
React.createElement("div", {className: "cgCh"},
React.createElement("a", {href: challenge.challengeCommunity != 'data' ? "/challenge-details/" +challenge.challengeId+"/?type="+challenge.challengeCommunity : tcconfig.communityURL + '/longcontest/?module=ViewProblemStatement&rd=' + challenge.roundId + '&pm=' + challenge.problemId, className: "contestName"},
React.createElement("a", {href: challenge.challengeCommunity != 'data' ? "/challenge-details/" +challenge.challengeId+"/?type="+challenge.challengeCommunity : tcconfig.communityURL + '/tc?module=MatchDetails&rd=' + challenge.roundId, className: "contestName"},
React.createElement("img", {alt: "", className: "allContestIco", src: images + '/ico-track-' + challenge.challengeCommunity + '.png'}),
React.createElement("span", {className: "gridChallengName"}, challenge.challengeName),
React.createElement("img", {alt: "", className: challenge.challengeCommunity != 'data' ? "allContestTCOIco" : "allContestTCOIco ng-hide", src: images + '/tco-flag-' + challenge.challengeCommunity + '.png'}),
Expand Down
2 changes: 1 addition & 1 deletion src/js/app/challenges/jsx/src/challenge-grid-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
return (
<div className={"contest "+ trackTag +" trackSD type-" + challenge.challengeCommunity} key={challenge.challengeId}>
<div className="cgCh">
<a href={challenge.challengeCommunity != 'data' ? "/challenge-details/" +challenge.challengeId+"/?type="+challenge.challengeCommunity : tcconfig.communityURL + '/longcontest/?module=ViewProblemStatement&rd=' + challenge.roundId + '&pm=' + challenge.problemId} className="contestName">
<a href={challenge.challengeCommunity != 'data' ? "/challenge-details/" +challenge.challengeId+"/?type="+challenge.challengeCommunity : tcconfig.communityURL + '/tc?module=MatchDetails&rd=' + challenge.roundId} className="contestName">
<img alt="" className="allContestIco" src={images + '/ico-track-' + challenge.challengeCommunity + '.png'} />
<span className="gridChallengName">{challenge.challengeName}</span>
<img alt="" className={challenge.challengeCommunity != 'data' ? "allContestTCOIco" : "allContestTCOIco ng-hide"} src={images + '/tco-flag-' + challenge.challengeCommunity + '.png'} />
Expand Down
4 changes: 2 additions & 2 deletions src/js/script-challenges.js
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ appChallenges = {
* generate table row for design past contest type
*/
if (typeof rec.numberOfRegistrants !== "undefined") {
$('.contestName', row).html('<img alt="" class="allContestIco" src="' + stylesheet_dir + '/i/ico-track-data.png" />' + '<a href="' + tcconfig.communityURL + '/longcontest/?module=ViewProblemStatement&rd=' + rec.roundId + '&pm=' + rec.problemId + '">' + rec.fullName + '</a>');
$('.contestName', row).html('<img alt="" class="allContestIco" src="' + stylesheet_dir + '/i/ico-track-data.png" />' + '<a href="' + tcconfig.communityURL + '/tc?module=MatchDetails&rd=' + rec.roundId + '">' + rec.fullName + '</a>');
$('.colType', row).html("Marathon");
$('.vStartDate', row).html(app.formatDate2(rec.startDate));
$('.vEndDate', row).html(app.formatDate2(rec.endDate));
Expand All @@ -832,7 +832,7 @@ appChallenges = {
$('.colSub', row).html(rec.numberOfSubmissions);
} else {
//$('.contestName', row).html(rec.fullName);
$('.contestName', row).html('<img alt="" class="allContestIco" src="' + stylesheet_dir + '/i/ico-track-data.png" />' + '<a href="' + tcconfig.communityURL + '/longcontest/?module=ViewProblemStatement&rd=' + rec.roundId + '&pm=' + rec.problemId + '">' + rec.fullName + '</a>');
$('.contestName', row).html('<img alt="" class="allContestIco" src="' + stylesheet_dir + '/i/ico-track-data.png" />' + '<a href="' + tcconfig.communityURL + '/tc?module=MatchDetails&rd=' + rec.roundId + '">' + rec.fullName + '</a>');
$('.colType', row).html("Marathon");
$('.vStartDate', row).html(app.formatDate2(rec.startDate));
$('.vEndDate', row).html(app.formatDate2(rec.endDate));
Expand Down
2 changes: 1 addition & 1 deletion wp/wp-content/themes/tcs-responsive/ng-page-challenges.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ class="ngHeaderCell" ng-header-cell>
</div>
<div class="colCh" ng-if="row.getProperty('challengeCommunity') === 'data'">
<div>
<a ng-href="//community.topcoder.com/longcontest/?module=ViewProblemStatement&rd={{row.getProperty('roundId')}}&pm={{row.getProperty('problemId')}}" class="contestName">
<a ng-href="//community.topcoder.com/tc?module=MatchDetails&rd={{row.getProperty('roundId')}}" class="contestName">
<img alt="allContestIco" class="allContestIco" ng-src="{{images}}/ico-track-{{row.getProperty('challengeCommunity')}}.png">
<span ng-cell-text>{{row.getProperty('fullName')}}</span>
<img alt="allContestTCOIco" class="allContestTCOIco" ng-src="{{images}}/tco-flag-{{row.getProperty('challengeCommunity') != 'data'?row.getProperty('challengeCommunity'):'develop'}}.png" ng-show="contest.contestType != 'data'">
Expand Down