]> git.openstreetmap.org Git - rails.git/blob - app/views/social_links/_show.html.erb
Extend starting/ending version lists containing active items
[rails.git] / app / views / social_links / _show.html.erb
1 <ul class="list-unstyled social_links">
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-3", :rel => "nofollow me" do %>
5         <%= image_tag "social_link_icons/#{social_link.parsed[:platform].nil? ? 'website' : social_link.parsed[:platform]}.svg",
6                       :alt => social_link.parsed[:platform].nil? ? t(".website") : social_link.parsed[:platform],
7                       :size => "16" %>
8         <span class="text-truncate">
9           <%= social_link.parsed[:name] %>
10         </span>
11       <% end %>
12     </li>
13   <% end %>
14 </ul>