related tags: strip http:// from artist urls.

This commit is contained in:
evazion
2018-10-25 23:38:24 -05:00
parent 705217d337
commit 77a576d5ed
2 changed files with 6 additions and 8 deletions

View File

@@ -19,10 +19,10 @@
<% artist.sorted_urls.each do |url| %>
<li>
<% if url.is_active %>
<%= external_link_to url.url, truncate: 30 %>
<%= external_link_to url.url, truncate: 64, strip_scheme: true %>
<%= link_to tag.i(class: "fas fa-minus-circle"), artist_url_path(id: url.id, artist_url: { is_active: false }), remote: true, method: :put, "data-confirm": "This will mark the URL as inactive. Continue?" %>
<% else %>
<del><%= truncate(url.url, length: 30) %></del>
<del><%= external_link_to url.url, truncate: 64, strip_scheme: true %></del>
<% end %>
</li>
<% end %>