Commit f6df3997 by Nilu

Appending company name to title and showing client name only if client support is enabled.

parent cdc765be
...@@ -418,10 +418,19 @@ public class Job extends BaseJob ...@@ -418,10 +418,19 @@ public class Job extends BaseJob
//to check company logo availability //to check company logo availability
public Boolean isClientLogoAvailable() public Boolean isClientLogoAvailable()
{ {
if( getClient()!=null if(isClientAvailable() && getClient().getClientLogo()!=null)
&& getClient().getClientLogo()!=null {
&& getCompanyUser()!=null return Boolean.TRUE;
&& getCompanyUser().getCompany().getHasClientSupport()==Boolean.TRUE ) }
return Boolean.FALSE;
}
public Boolean isClientAvailable()
{
if( getClient() != null && getCompanyUser() != null
&& getCompanyUser().getCompany().getHasClientSupport()== Boolean.TRUE )
{ {
return Boolean.TRUE; return Boolean.TRUE;
} }
......
...@@ -4,7 +4,12 @@ ...@@ -4,7 +4,12 @@
<meta charset="utf-8"></meta> <meta charset="utf-8"></meta>
<meta http-equiv="X-UA-Compatible" content="IE=edge"></meta> <meta http-equiv="X-UA-Compatible" content="IE=edge"></meta>
<meta name="viewport" content="width=device-width, initial-scale=1"></meta> <meta name="viewport" content="width=device-width, initial-scale=1"></meta>
<title>Talentology</title> <%
Company company = clientUser != null && clientUser.getExtension(CompanyUser.REFERENCE_CompanyUser) != null
? clientUser.getExtension(CompanyUser.REFERENCE_CompanyUser).getCompany() : null;
%>
<title><%= "Talentology" + (company != null ? " - " + company.getCompanyName() : "")%></title>
<%@include file="/inc/std_imports.jsp" %> <%@include file="/inc/std_imports.jsp" %>
</head> </head>
<script> <script>
...@@ -50,7 +55,7 @@ ...@@ -50,7 +55,7 @@
<div class="search-bar"> <div class="search-bar">
<div class="inset-shadow"></div> <div class="inset-shadow"></div>
<img src="images/search-icon.svg"/> <img src="images/search-icon.svg"/>
<input type="text" class="form-control" placeholder="Search for job, candidate or client"/> <input type="text" class="form-control" placeholder="<%= company.getHasClientSupport() ? "Search for job, candidate or client" : "Search for a job or candidate"%>"/>
</div> </div>
<div class="fl-right"> <div class="fl-right">
<div class="notification-bar"> <div class="notification-bar">
......
...@@ -56,7 +56,14 @@ ...@@ -56,7 +56,14 @@
</div> </div>
<div class="job-company-name"> <div class="job-company-name">
<span class="superlaw"> <span class="superlaw">
<%
if(job.isClientAvailable())
{
%>
<oneit:toString value="<%= job.getClient() %>" mode="EscapeHTML" /> <oneit:toString value="<%= job.getClient() %>" mode="EscapeHTML" />
<%
}
%>
</span> </span>
<span class="calendar"> <span class="calendar">
<% <%
......
...@@ -35,7 +35,14 @@ ...@@ -35,7 +35,14 @@
</div> </div>
<div class="off-name"> <div class="off-name">
<span class="austr-post"> <span class="austr-post">
<%
if(job.isClientAvailable())
{
%>
<oneit:toString value="<%= job.getClient() %>" mode="EscapeHTML" /> <oneit:toString value="<%= job.getClient() %>" mode="EscapeHTML" />
<%
}
%>
</span> by <oneit:toString value="<%= job.getCompanyUser() %>" mode="EscapeHTML" nullValue=""/><span class="ex-management">&bull;&nbsp; </span> by <oneit:toString value="<%= job.getCompanyUser() %>" mode="EscapeHTML" nullValue=""/><span class="ex-management">&bull;&nbsp;
<oneit:toString value="<%= job.getLevel() %>" mode="EscapeHTML" /> <oneit:toString value="<%= job.getLevel() %>" mode="EscapeHTML" />
</span> </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