Add tag_line to org admin and add conditional on hiring post (#250)

This commit is contained in:
Ben Halpern 2018-04-26 15:13:11 -04:00 committed by GitHub
parent e2a35693b1
commit 6b2b30274e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 6 deletions

View file

@ -12,6 +12,7 @@ class OrganizationDashboard < Administrate::BaseDashboard
name: Field::String,
slug: Field::String,
summary: Field::Text,
tag_line: Field::String,
profile_image: CarrierwaveField,
nav_image: CarrierwaveField,
url: Field::String,
@ -56,6 +57,7 @@ class OrganizationDashboard < Administrate::BaseDashboard
:name,
:slug,
:summary,
:tag_line,
:profile_image,
:nav_image,
:url,

View file

@ -131,12 +131,16 @@
</h3>
<% if @article.job_opportunity.present? %>
<div class="tags" style="margin-bottom: 10px;">
<a class="tag" target="_blank" style="color:white;background:#0eb268;" href="https://www.google.com/maps/place/<%= JobOpportunity.last.location_given %>">
<%= @article.job_opportunity.location_city %>
</a>
<span class="tag" style="color:white;background:#0b82c6;">
<%= @article.job_opportunity.remoteness_in_words %>
</span>
<% if @article.job_opportunity.location_city.present? %>
<a class="tag" target="_blank" style="color:white;background:#0eb268;" href="https://www.google.com/maps/place/<%= JobOpportunity.last.location_given %>">
<%= @article.job_opportunity.location_city %>
</a>
<% end %>
<% if @article.job_opportunity.remoteness_in_words.present? %>
<span class="tag" style="color:white;background:#0b82c6;">
<%= @article.job_opportunity.remoteness_in_words %>
</span>
<% end %>
</div>
<% end %>
<div class="tags">