small fir links and language file

This commit is contained in:
Harry Bomrah 2018-01-15 20:42:34 +08:00
parent a2ca1c9aeb
commit 488d28ae61
4 changed files with 14 additions and 5 deletions

View File

@ -442,10 +442,8 @@ class RecruitmentsController < PseudoSessionController
def recruitment_dashboard
if @profile.is_employer?
@jobsposted = @profile.profile.recruitment_jobs.desc(:created_at)
@page = "/#{I18n.locale.to_s}" + Page.where(:module => "recruitment").first.url rescue "#"
elsif @profile.is_employee?
@applications = @profile.profile.employee_job_applications.desc(:created_at)
@page = "/#{I18n.locale.to_s}" + Page.where(:module => "recruitment").first.url rescue "#"
end
end

View File

@ -15,7 +15,13 @@
<% job = app.get_job %>
<tr>
<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><%= app.created_at.strftime("%d %B %Y") %></td>
</tr>

View File

@ -16,7 +16,12 @@
<% @jobsposted.each do |job| %>
<tr>
<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.filled ? "Yes" : "No" %></td>
<td>

View File

@ -21,7 +21,7 @@ en:
internship_title: Internship Title
internship_description: Internship Description
internship_conditions: Internship Conditions
stipend-title: Stipend Title
stipend-title: Stipend
stipend_range: Stipend Range
in: in
min_qualification: Min Qualification