]> git.openstreetmap.org Git - rails.git/blob - app/views/social_links/_show.html.erb
Merge remote-tracking branch 'upstream/pull/6303'
[rails.git] / app / views / social_links / _show.html.erb
1 <ul class="list-unstyled social_links mb-0">
2   <% social_links.each do |social_link| %>
3     <li>
4       <%= link_to social_link.parsed[:url], :class => "icon-link mw-100 text-body-secondary mb-2", :rel => "nofollow me" do %>
5         <%= inline_svg_tag "social_link_icons/#{social_link.parsed[:platform] || 'website'}.svg",
6                            :title => social_link.parsed[:platform] || t(".website"),
7                            :class => "flex-shrink-0" %>
8         <span class="text-truncate">
9           <%= social_link.parsed[:name] %>
10         </span>
11       <% end %>
12     </li>
13   <% end %>
14 </ul>