mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
move country code flag back to where it was
This commit is contained in:
@@ -13,11 +13,6 @@ end %>">
|
||||
<% else %>
|
||||
<%= h(user.name) %>
|
||||
<% end %>
|
||||
<% if user.country_code.present? %>
|
||||
<span title="<%= ISO3166::Country.new(user.country_code).common_name %>">
|
||||
<%= country_to_emoji(user.country_code) %>
|
||||
</span>
|
||||
<% end %>
|
||||
<%# GitHub profile link - shown if :github_profile_link is in the :show array %>
|
||||
<% if github_url = user.github_profile_url # Assign to variable to avoid calling method twice %>
|
||||
<% if local_assigns.fetch(:show, []).include?(:github_profile_link) %>
|
||||
@@ -27,6 +22,11 @@ end %>">
|
||||
<% end %>
|
||||
<% end %>
|
||||
</span>
|
||||
<% if user.country_code.present? %>
|
||||
<span title="<%= ISO3166::Country.new(user.country_code).common_name %>">
|
||||
<%= country_to_emoji(user.country_code) %>
|
||||
</span>
|
||||
<% end %>
|
||||
<% if local_assigns.fetch(:show, []).include?(:neighborhood) && user.slack_neighborhood_channel.present? %>
|
||||
<%= link_to "🏘️", "https://hackclub.slack.com/archives/#{user.slack_neighborhood_channel}", target: "_blank" %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user