small fir links and language file
This commit is contained in:
parent
a2ca1c9aeb
commit
488d28ae61
|
@ -442,10 +442,8 @@ class RecruitmentsController < PseudoSessionController
|
||||||
def recruitment_dashboard
|
def recruitment_dashboard
|
||||||
if @profile.is_employer?
|
if @profile.is_employer?
|
||||||
@jobsposted = @profile.profile.recruitment_jobs.desc(:created_at)
|
@jobsposted = @profile.profile.recruitment_jobs.desc(:created_at)
|
||||||
@page = "/#{I18n.locale.to_s}" + Page.where(:module => "recruitment").first.url rescue "#"
|
|
||||||
elsif @profile.is_employee?
|
elsif @profile.is_employee?
|
||||||
@applications = @profile.profile.employee_job_applications.desc(:created_at)
|
@applications = @profile.profile.employee_job_applications.desc(:created_at)
|
||||||
@page = "/#{I18n.locale.to_s}" + Page.where(:module => "recruitment").first.url rescue "#"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,13 @@
|
||||||
<% job = app.get_job %>
|
<% job = app.get_job %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= job.get_post_type_label.html_safe %></td>
|
<td><%= job.get_post_type_label.html_safe %></td>
|
||||||
<td><a href="<%= @page + "/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
<td>
|
||||||
|
<% if job.post_type == "type1" %>
|
||||||
|
<a href="<%= "/#{I18n.locale.to_s}/jobs/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
||||||
|
<% elsif job.post_type == "type2" %>
|
||||||
|
<a href="<%= "/#{I18n.locale.to_s}/internships/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
||||||
|
<% end %>
|
||||||
|
</td>
|
||||||
<td><%= job.employer_profile.company_name %></td>
|
<td><%= job.employer_profile.company_name %></td>
|
||||||
<td><%= app.created_at.strftime("%d %B %Y") %></td>
|
<td><%= app.created_at.strftime("%d %B %Y") %></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -16,7 +16,12 @@
|
||||||
<% @jobsposted.each do |job| %>
|
<% @jobsposted.each do |job| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= job.get_post_type_label.html_safe %></td>
|
<td><%= job.get_post_type_label.html_safe %></td>
|
||||||
<td><a href="<%= @page + "/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
<td>
|
||||||
|
<% if job.post_type == "type1" %>
|
||||||
|
<a href="<%= "/#{I18n.locale.to_s}/jobs/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
||||||
|
<% elsif job.post_type == "type2" %>
|
||||||
|
<a href="<%= "/#{I18n.locale.to_s}/internships/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
||||||
|
<% end %>
|
||||||
<td><%= job.created_at.strftime("%Y-%m-%d") %></td>
|
<td><%= job.created_at.strftime("%Y-%m-%d") %></td>
|
||||||
<td><%= job.filled ? "Yes" : "No" %></td>
|
<td><%= job.filled ? "Yes" : "No" %></td>
|
||||||
<td>
|
<td>
|
||||||
|
|
|
@ -21,7 +21,7 @@ en:
|
||||||
internship_title: Internship Title
|
internship_title: Internship Title
|
||||||
internship_description: Internship Description
|
internship_description: Internship Description
|
||||||
internship_conditions: Internship Conditions
|
internship_conditions: Internship Conditions
|
||||||
stipend-title: Stipend Title
|
stipend-title: Stipend
|
||||||
stipend_range: Stipend Range
|
stipend_range: Stipend Range
|
||||||
in: in
|
in: in
|
||||||
min_qualification: Min Qualification
|
min_qualification: Min Qualification
|
||||||
|
|
Loading…
Reference in New Issue