Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit c4b1c42

Browse files
Display external URL to apply when it exists
1 parent 16f7500 commit c4b1c42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/views/jobs/_job_info_sidebar.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
<% if @job.online? %>
1414
<hr/>
1515
<div class="center-content">
16-
<%= link_to("Apply for this position", h(@job.external_link), class: "button button-3d button-small") %>
16+
<% unless @job.external_link.blank? %>
17+
<%= link_to("Apply for this position", url_for(@job.external_link), class: "button button-3d button-small") %>
18+
<% end %>
1719

1820
<% unless @job.apply_email.blank? %>
1921
<%= mail_to(@job.apply_email, "Apply via email", class: "button button-3d button-yellow button-small") %>

0 commit comments

Comments
 (0)