From 1e6d1bb165e9d65827fbc6c2af94afa311f8ae37 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Wed, 11 Sep 2013 13:35:26 -0700 Subject: [PATCH] fixes #1976 --- app/views/artists/show.html.erb | 43 ++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/app/views/artists/show.html.erb b/app/views/artists/show.html.erb index e71e063ec..1b0c8ed17 100644 --- a/app/views/artists/show.html.erb +++ b/app/views/artists/show.html.erb @@ -2,7 +2,7 @@

Artist: <%= @artist.name.tr("_", " ") %>

- <% unless @artist.notes.blank? %> + <% if @artist.notes.present? && (!@artist.is_banned? || CurrentUser.user.is_member?) %>
<%= format_text(@artist.notes) %>
@@ -13,25 +13,28 @@
  • 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 %> - <% @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 => "-#{@artist.name} source:#{ArtistUrl.normalize_for_search(url.to_s)}", :consequent => @artist.name)) %>) - <% end %> -
  • + + <% 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 %> + <% @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 => "-#{@artist.name} source:#{ArtistUrl.normalize_for_search(url.to_s)}", :consequent => @artist.name)) %>) + <% end %> +
  • + <% end %> <% end %>