artists: make artist pages less shit.
* Group URLs by site. * List most important URLs first and dead URLs last. * Add site icons next to URLs. * Put other names and group name beneath the artist name, instead of beneath the wiki.
This commit is contained in:
@@ -11,8 +11,6 @@ class SourceDataComponent < ApplicationComponent
|
||||
end
|
||||
|
||||
def profile_urls(artist)
|
||||
artist.urls.active.reject(&:secondary_url?).sort_by do |artist_url|
|
||||
[artist_url.priority, artist_url.domain, artist_url.url]
|
||||
end
|
||||
artist.sorted_urls.select(&:is_active?).reject(&:secondary_url?)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user