posts: change "»" links next to sources in sidebar.

* On the posts show page, make the "»" link next to the source visible
  to all users, not just builders.
* Make "»" link to the raw unnormalized source, instead of a `source:` search.
* Remove the special case for displaying old pixiv sources as `pixiv/moniker`.
This commit is contained in:
evazion
2019-09-22 02:58:09 -05:00
parent 5f43401b7b
commit 8f6fd95e2d
3 changed files with 8 additions and 25 deletions

View File

@@ -19,10 +19,10 @@
<% artist.sorted_urls.each do |url| %>
<li>
<% if url.is_active %>
<%= external_link_to url.url, truncate: 64, strip_scheme: true, link_options: {target: "_blank"} %>
<%= external_link_to url.url, truncate: 64, strip: :scheme, link_options: {target: "_blank"} %>
<%= 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><%= external_link_to url.url, truncate: 64, strip_scheme: true, link_options: {target: "_blank"} %></del>
<del><%= external_link_to url.url, truncate: 64, strip: :scheme, link_options: {target: "_blank"} %></del>
<% end %>
</li>
<% end %>