* Initial work * Add special exceptions * Clean up and progress * Update github url Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com> * Add tests and finalize data update script * Fix test * Add some tests * Fix display_area test * Adjust spec * Fix svg title Co-authored-by: Molly Struve <mollylbs@gmail.com> Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
31 lines
1.2 KiB
Text
31 lines
1.2 KiB
Text
<% if (header_fields = @profile.ui_attributes_for(area: :header)).present? %>
|
|
<div class="profile-header__bottom fs-base">
|
|
<% header_fields.each do |title, value| %>
|
|
<% next if Profile.special_attributes.include?(title) %>
|
|
<div class="crayons-definition">
|
|
<strong class="crayons-definition__title">
|
|
<%= sanitized_sidebar title.titleize %>
|
|
</strong>
|
|
<p class="crayons-definition__value">
|
|
<%= sanitized_sidebar value %>
|
|
</p>
|
|
</div>
|
|
<% end %>
|
|
<% if @user.employment_title.present? %>
|
|
<div class="crayons-definition">
|
|
<strong class="crayons-definition__title">Work</strong>
|
|
<p class="crayons-definition__value">
|
|
<%= @user.employment_title %>
|
|
<% if @user.employer_name.present? %>
|
|
<span class="opacity-50"> at </span>
|
|
<% if @user.employer_url.present? %>
|
|
<a href="<%= @user.employer_url %>" class="crayons-link crayons-link--brand" target="_blank" rel="noopener"><%= @user.employer_name %></a>
|
|
<% else %>
|
|
<%= @user.employer_name %>
|
|
<% end %>
|
|
<% end %>
|
|
</p>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|