Skip to content

Commit 7ff96e1

Browse files
committed
fix: manage project
1 parent 21a32ea commit 7ff96e1

File tree

4 files changed

+886
-701
lines changed

4 files changed

+886
-701
lines changed

src/main/java/com/cronos/onlinereview/actions/projectmanagementconsole/ViewManagementConsoleAction.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.cronos.onlinereview.util.AuthorizationHelper;
1010
import com.cronos.onlinereview.util.CorrectnessCheckResult;
1111
import com.cronos.onlinereview.util.LoggingHelper;
12+
import com.cronos.onlinereview.util.ConfigHelper;
1213
import com.topcoder.onlinereview.component.project.management.Project;
1314
import com.topcoder.onlinereview.component.exception.BaseException;
1415

@@ -64,6 +65,28 @@ public String execute() throws BaseException {
6465
Project project = verification.getProject();
6566
initProjectManagementConsole(request, project);
6667

68+
request.setAttribute("projectStatus", project.getProjectStatus().getName());
69+
70+
final String projectTypeName = project.getProjectCategory().getProjectType().getName();
71+
72+
boolean hasForumType = project.getAllProperties().containsKey("Forum Type");
73+
74+
long projectId = project.getId();
75+
long forumId = -1;
76+
String tempStr;
77+
78+
tempStr = (String) project.getProperty("Developer Forum ID");
79+
if (tempStr != null && tempStr.trim().length() != 0) {
80+
forumId = Long.parseLong(tempStr, 10);
81+
}
82+
83+
request.setAttribute("viewContestLink", ConfigHelper.getProjectTypeViewContestLink(projectTypeName, projectId));
84+
85+
request.setAttribute("forumLink", ConfigHelper.getProjectTypeForumLink(
86+
(projectTypeName.equalsIgnoreCase("studio") && hasForumType) ? "NewStudio" : projectTypeName, forumId));
87+
request.setAttribute("isAllowedToContactPM",
88+
AuthorizationHelper.hasUserPermission(request, Constants.CONTACT_PM_PERM_NAME));
89+
6790
return Constants.SUCCESS_FORWARD_NAME;
6891
}
6992
}

web/css/reskin-or/reskin.css

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ body {
187187
padding-bottom: 132px;
188188
}
189189

190+
.content--manageProject {
191+
padding-bottom: 148px;
192+
}
193+
190194
.content__inner {
191195
display: block;
192196
margin: 0 auto;
@@ -375,6 +379,7 @@ body {
375379
margin-right: 16px;
376380
}
377381

382+
.manageProject,
378383
.viewProjectPayment,
379384
.editProjectLink,
380385
.projectDetails {
@@ -384,6 +389,11 @@ body {
384389
margin: 32px auto;
385390
}
386391

392+
.manageProject {
393+
position: relative;
394+
}
395+
396+
.manageProject__title,
387397
.viewProjectPayment__title,
388398
.editProjectLink__title,
389399
.projectDetails__title {
@@ -397,6 +407,7 @@ body {
397407
flex-grow: 1;
398408
}
399409

410+
.manageProject__sectionHeader,
400411
.viewProjectPayment__sectionHeader,
401412
.editProjectLink__sectionHeader,
402413
.projectDetails__sectionHeader {
@@ -736,6 +747,7 @@ table.scorecard td.headerT {
736747
.addPayment {
737748
padding: 3px 16px;
738749
font-size: 12px;
750+
height: 24px;
739751
}
740752

741753
table.scorecard td.reviewerResp input {
@@ -892,7 +904,9 @@ table.scorecard td.reviewerResp input {
892904
.phasesTable__header th,
893905
.prizesTable__header th,
894906
.resourcesTable__header th,
907+
.reviewPaymentTable__header th,
895908
.projectListTable__header th,
909+
.addResourcesTable__header td.title,
896910
.lateDeliverablesTable__header th,
897911
.projectPaymentTable__header th {
898912
height: 30px;
@@ -915,9 +929,11 @@ table.scorecard td.reviewerResp input {
915929
.editProjectPaymentTable__header th:first-child,
916930
.projectLinkTable__header th:first-child,
917931
.myInfoTable__header th:first-child,
932+
.addResourcesTable__header td.title:first-child,
918933
.timelineTable__header--left th:first-child,
919934
.phasesTable__header th:first-child,
920935
.prizesTable__header th:first-child,
936+
.reviewPaymentTable__header th:first-child,
921937
.resourcesTable__header th:first-child,
922938
.projectListTable__header th:first-child,
923939
.lateDeliverablesTable__header th:first-child,
@@ -927,6 +943,8 @@ table.scorecard td.reviewerResp input {
927943

928944
.editProjectPaymentTable__header th:last-child,
929945
.myInfoTable__header th:last-child,
946+
.addResourcesTable__header td.title:last-child,
947+
.reviewPaymentTable__header th:last-child,
930948
.timelineTable__header--right th:last-child,
931949
.phasesTable__header th:last-child,
932950
.prizesTable__header th:last-child,
@@ -944,6 +962,10 @@ table.scorecard td.reviewerResp input {
944962
.resourcesTable__body td,
945963
.prizesTable__body td,
946964
.projectListTable__body td,
965+
.extendRegistration__body td,
966+
.extendSubTable__body td,
967+
.addResourcesTable__body td,
968+
.reviewPaymentTable__body td,
947969
.projectPaymentTable__body td {
948970
height: 56px;
949971
font-family: 'Roboto';
@@ -2141,13 +2163,29 @@ td.resourcesTable__empty {
21412163
background: var(--green);
21422164
}
21432165

2166+
.custom-radio label.fixedAmt {
2167+
font-weight: 500;
2168+
font-size: 14px;
2169+
line-height: 22px;
2170+
margin-right: 2px;
2171+
}
2172+
2173+
.custom-radio label.percentage {
2174+
margin-right: 0;
2175+
}
2176+
2177+
.table__error,
21442178
.editProjectLink__error td {
21452179
font-family: 'Roboto';
21462180
font-size: 14px;
21472181
padding-bottom: 18px;
21482182
padding-top: 6px;
21492183
}
21502184

2185+
.table__error {
2186+
padding-bottom: 0;
2187+
}
2188+
21512189
.selectCustom-add,
21522190
.selectCustom {
21532191
position: relative;
@@ -2243,4 +2281,52 @@ td.resourcesTable__empty {
22432281
text-align: right;
22442282
margin-left: 4px;
22452283
color: var(--black-100);
2284+
}
2285+
2286+
.addResourcesTable__title th,
2287+
.extendSubTable__header th,
2288+
.extendRegistration__header th {
2289+
font-family: 'Barlow';
2290+
font-weight: 600;
2291+
font-size: 18px;
2292+
padding: 16px 0;
2293+
line-height: 22px;
2294+
text-align: left;
2295+
text-transform: uppercase;
2296+
color: var(--black-100);
2297+
}
2298+
2299+
.addResourcesTable__body td.label,
2300+
.extendSubTable__body td.label,
2301+
.extendRegistration__body td.label {
2302+
width: 52%;
2303+
}
2304+
2305+
.addResourcesTable__body td.input,
2306+
.extendRegistration__body td.input,
2307+
.extendSubTable__body td.input {
2308+
height: 74px;
2309+
border-bottom: 2px solid var(--black-10);
2310+
}
2311+
2312+
.addResInput {
2313+
width: 98%;
2314+
text-align: left;
2315+
}
2316+
2317+
.addResourcesTable__body td.input:last-child {
2318+
border-bottom: none
2319+
}
2320+
2321+
.manageProjectForm {
2322+
margin-bottom: 0;
2323+
}
2324+
2325+
.reviewPaymentTable__body td {
2326+
height: 74px;
2327+
}
2328+
2329+
.viewManageButtom {
2330+
position: absolute;
2331+
right: 0;
22462332
}

web/includes/project/project_info_reskin.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
<div class="projectInfo">
10-
<h1 class="projectInfo__projectName">${project.allProperties["Project Name"]}</h1>
10+
<h1 class="projectInfo__projectName">${project.allProperties["Project Name"]} ${param.titleAction}</h1>
1111
<div class="projectInfo__info">
1212
<c:if test='${!(empty project.allProperties["Project Version"])}'>
1313
<p class="projectInfo__projectVersion"><or:text key="global.version" /> ${project.allProperties["Project Version"]}</p>

0 commit comments

Comments
 (0)