Commit 440f9a0c by Harsh Shah

Clients page should display Job Count instead of Application count

parent cf422df4
......@@ -19,11 +19,11 @@ public class Client extends BaseClient
// Do not add any code to this, always put it in initialiseNewObject
}
public int getApplicationCountByStatus(JobStatus jobStatus)
public int getJobCountByStatus(JobStatus jobStatus)
{
Filter<Job> filter = Job.SearchByAll().andJobStatus(new EqualsFilter<>(jobStatus));
return pipelineClient().toJobs(filter).toJobApplications().uniqueVals().size();
return pipelineClient().toJobs(filter).uniqueVals().size();
}
......
......@@ -197,7 +197,7 @@ public class Utils
@Override
public Integer transform(Client client)
{
return client.getApplicationCountByStatus(jobStatus);
return client.getJobCountByStatus(jobStatus);
}
}
......
......@@ -75,7 +75,7 @@
<%
for (JobStatus jobStatus : Utils.getJobStatusesForClient())
{
int jobCount = client.getApplicationCountByStatus(jobStatus);
int jobCount = client.getJobCountByStatus(jobStatus);
%>
<div class="<%= "application-count jl-c " + (jobCount == 0 ? "opaque-jobcount" : "")%>">
<oneit:toString value="<%= jobCount %>" mode="EscapeHTML" nullValue="0"/>
......
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