Commit a00cd534 by Nilu Committed by Harsh Shah

Row - Job - If job is Open, then show [calendar] N days until closed. Otherwise,…

Row - Job - If job is Open, then show [calendar] N days until closed. Otherwise, show [calendar] {Status} on {date} - For example, if job is Closed, then show the calendar icon with **Closed on July 28, 2017** Statuses: Draft / Open / Closed / Filled. Date is whenever the most recent status was applied.
parent b36602b2
...@@ -31,7 +31,25 @@ ...@@ -31,7 +31,25 @@
</div> </div>
<div class="applicant-right-status"> <div class="applicant-right-status">
<span class="light-calendar"> <span class="light-calendar">
<oneit:toString value="<%= job.getClosingInText() %>" mode="EscapeHTML"/> <%
if(job.getJobStatus() == JobStatus.OPEN)
{
int daysToClose = job.getNoOfDaystoClosed();
%>
<span class="number">
<oneit:toString value="<%= daysToClose %>" mode="Integer"/>
</span>
<oneit:toString value="<%= (daysToClose == 1 ? "day" : "days") + " until closed" %>" mode="EscapeHTML"/>
<%
}
else
{
%>
<oneit:toString value="<%= job.getJobStatus().getDescription() %>" mode="EscapeHTML"/> on
<oneit:toString value="<%= job.getLastStatusChangeDate() %>" mode="PerformaDate"/>
<%
}
%>
</span> </span>
<span class="job-status-appli"> <span class="job-status-appli">
<span class="<%= job.getJobStatus().getName().toLowerCase() + "-status-icon" %>"></span> <span class="<%= job.getJobStatus().getName().toLowerCase() + "-status-icon" %>"></span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment