diff --git a/app/views/artists/_summary.html.erb b/app/views/artists/_summary.html.erb
new file mode 100644
index 000000000..f51c51db4
--- /dev/null
+++ b/app/views/artists/_summary.html.erb
@@ -0,0 +1,42 @@
+
+
+ - Status <%= artist.status %>
+
+ <% if !artist.is_banned? || CurrentUser.is_member? %>
+ <% 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 %>
+ <% end %>
+
\ No newline at end of file
diff --git a/app/views/artists/show.html.erb b/app/views/artists/show.html.erb
index edf615e9c..c91eb0324 100644
--- a/app/views/artists/show.html.erb
+++ b/app/views/artists/show.html.erb
@@ -12,45 +12,7 @@
<% if @artist.visible? %>
-
- - Status <%= @artist.status %>
-
- <% if !@artist.is_banned? || CurrentUser.user.is_member? %>
- <% 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 %>
- <% end %>
-
+ <%= render "summary", artist: @artist %>
<% else %>
diff --git a/app/views/posts/partials/index/_excerpt.html.erb b/app/views/posts/partials/index/_excerpt.html.erb
index 0e6559226..af665b21b 100644
--- a/app/views/posts/partials/index/_excerpt.html.erb
+++ b/app/views/posts/partials/index/_excerpt.html.erb
@@ -13,43 +13,7 @@
<% 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 %>
-
-
+ <%= render "artists/summary", artist: artist %>
<%= artist_alias_and_implication_list(artist) %>
@@ -67,7 +31,6 @@
<% end %>
<%= format_text(wiki_page.presenter.excerpt, :ragel => true) %>
-
<%= wiki_page_alias_and_implication_list(wiki_page) %>
@@ -89,7 +52,9 @@
<%= 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? %>
diff --git a/app/views/users/_statistics.html.erb b/app/views/users/_statistics.html.erb
index b2de534f2..f9244056e 100644
--- a/app/views/users/_statistics.html.erb
+++ b/app/views/users/_statistics.html.erb
@@ -39,10 +39,10 @@
|
<%= presenter.upload_count(self) %>
<% if presenter.has_uploads? %>
- (<%= link_to "tag changes report", reports_upload_tags_path(user_id: user.id) %>)
+ [<%= link_to "tag changes report", reports_upload_tags_path(user_id: user.id) %>]
<% end %>
<% if CurrentUser.is_moderator? %>
- (<%= link_to "sample", posts_path(:tags => "user:#{user.name} order:random limit:300") %>)
+ [<%= link_to "sample", posts_path(:tags => "user:#{user.name} order:random limit:300") %>]
<% end %>
|
@@ -52,7 +52,7 @@
<%= presenter.deleted_upload_count(self) %>
<% if CurrentUser.is_moderator? %>
- (<%= link_to "sample", posts_path(:tags => "user:#{user.name} order:random limit:300 status:deleted") %>)
+ [<%= link_to "sample", posts_path(:tags => "user:#{user.name} order:random limit:300 status:deleted") %>]
<% end %>
|
@@ -63,7 +63,7 @@
<%= presenter.favorite_count(self) %>
<% if CurrentUser.is_moderator? %>
- (<%= link_to "sample", posts_path(:tags => "fav:#{user.name} order:random limit:300") %>)
+ [<%= link_to "sample", posts_path(:tags => "fav:#{user.name} order:random limit:300") %>]
<% end %>
|