<% if post_set.has_artist? %>
- <% if post_set.artist.visible? %>
- <% unless post_set.artist.notes.blank? %>
-
- <%= format_text(post_set.artist.notes, :ragel => true) %>
+ <% post_set.artist.tap do |artist| %>
+ <% if artist.visible? %>
+ <% unless artist.notes.blank? %>
+
+ <%= format_text(artist.notes, :ragel => true) %>
+
+ <% end %>
+
+
+
+ - Status <%= artist.status %>
+ <% if artist.has_tag_alias? %>
+ - Tag Alias <%= artist.tag_alias_name %>
+ <% end %>
+ <% if artist.other_names.present? %>
+ - Other Names <%= link_to_artists(artist.other_names.split(/ /)) %>
+ <% end %>
+ <% if artist.group_name.present? %>
+ - Group <%= link_to_artist(artist.group_name) %>
+ <% end %>
+ <% if artist.members.any? %>
+ - Members <%= link_to_artists(artist.members.map(&:name)) %>
+ <% end %>
+ <% if artist.domains.any? %>
+ - Domains
+
+ <% artist.domains.each do |url, count| %>
+ - <%= url %>: <%= count %>
+ <% end %>
+
+ <% end %>
+ <% if artist.urls.any? %>
+ - URLs
+
+ <% artist.urls.each do |url| %>
+ -
+ <%= link_to h(url.to_s), h(url.to_s) %>
+ <% if CurrentUser.user.is_moderator? %>
+ [<%= link_to("mass edit", edit_moderator_tag_path(:antecedent => "-#{artist.name} source:#{ArtistUrl.normalize_for_search(url.to_s)}", :consequent => artist.name)) %>]
+ <% end %>
+
+ <% end %>
+
+ <% end %>
+
+
+ <%= artist_alias_and_implication_list(artist) %>
+
+
+ <%= link_to "View wiki", artist.wiki_page %> |
+ <%= link_to "View artist", artist_path(artist.id) %>
+
-
-
<%= link_to "View wiki page", post_set.artist.wiki_page %>
<% end %>
-
-
-
- - Status <%= post_set.artist.status %>
- <% if post_set.artist.has_tag_alias? %>
- - Tag Alias <%= post_set.artist.tag_alias_name %>
- <% end %>
- <% if post_set.artist.other_names.present? %>
- - Other Names <%= link_to_artists(post_set.artist.other_names.split(/ /)) %>
- <% end %>
- <% if post_set.artist.group_name.present? %>
- - Group <%= link_to_artist(post_set.artist.group_name) %>
- <% end %>
- <% if post_set.artist.members.any? %>
- - Members <%= link_to_artists(post_set.artist.members.map(&:name)) %>
- <% end %>
- <% post_set.artist.urls.each do |url| %>
- -
- URL: <%= link_to h(url.to_s), h(url.to_s) %>
- <% if CurrentUser.user.is_moderator? %>
- (<%= link_to("mass edit", edit_moderator_tag_path(:antecedent => "-#{post_set.artist.name} source:#{ArtistUrl.normalize_for_search(url.to_s)}", :consequent => post_set.artist.name)) %>)
- <% end %>
-
- <% end %>
-
-
- <%= artist_alias_and_implication_list(post_set.artist) %>
-
-
<%= link_to "View artist", artist_path(post_set.artist.id) %>
-
<% end %>
<% elsif post_set.has_wiki? %>
-
- <% if post_set.wiki_page.other_names.present? %>
-
<%= wiki_page_other_names_list(post_set.wiki_page) %>
- <% end %>
+ <% post_set.wiki_page.tap do |wiki_page| %>
+
+ <% if wiki_page.other_names.present? %>
+
<%= wiki_page_other_names_list(wiki_page) %>
+ <% end %>
- <%= format_text(post_set.wiki_page.presenter.excerpt, :ragel => true) %>
+ <%= format_text(wiki_page.presenter.excerpt, :ragel => true) %>
- <% if post_set.wiki_page.artist %>
-
<%= link_to "View artist", post_set.wiki_page.artist %>
- <% end %>
+ <%= wiki_page_alias_and_implication_list(wiki_page) %>
- <%= wiki_page_alias_and_implication_list(post_set.wiki_page) %>
-
-
<%= link_to "View wiki page", wiki_page_path(post_set.wiki_page.id) %>
-
+
+ <%= link_to "View wiki", wiki_page_path(wiki_page.id) %>
+
+
+ <% end %>
<% elsif post_set.has_pool? %>
-
- <%= post_set.pool.pretty_category %>:
- <%= link_to post_set.pool.pretty_name, pool_path(post_set.pool), :class => "pool-category-#{post_set.pool.category}" %>
- <% if post_set.pool.is_deleted? %>
- (deleted)
- <% end %>
-
+ <% post_set.pool.tap do |pool| %>
+
+ <%= pool.pretty_category %>:
+ <%= link_to pool.pretty_name, pool_path(pool), :class => "pool-category-#{pool.category}" %>
+ <% if pool.is_deleted? %>
+ (deleted)
+ <% end %>
+
-
- <%= format_text(post_set.pool.description, :ragel => true) %>
-
+
+ <%= format_text(post_set.pool.description, :ragel => true) %>
+
-
<%= link_to "View pool", pool_path(post_set.pool.id) %>
+
<%= link_to "View pool", pool_path(post_set.pool.id) %>
+ <% end %>
<% elsif post_set.has_favgroup? %>
Favorite Group: