Allow all users to view and edit artist entries and wiki pages belonging to banned artists. There was little need to hide these pages from Members, it was mainly to appease artists who didn't like us even linking to their sites. These restrictions also had multiple flaws: * Banned artist information was still visible in the API. * It was still possible to edit banned artists using the API. * It was still possible for unprivileged users to revert banned artist entries or wiki pages to previous versions. * The restrictions were inconsistent: in various places they were either Member-only, Gold-only, or Builder-only.
31 lines
923 B
Plaintext
31 lines
923 B
Plaintext
<% page_title "#{@artist.pretty_name.titleize} | Artist Profile" %>
|
|
<%= render "secondary_links" %>
|
|
|
|
<div id="c-artists">
|
|
<div id="a-show">
|
|
<h1>Artist: <%= link_to @artist.pretty_name, posts_path(:tags => @artist.name), :class => "tag-type-#{@artist.category_name}" %></h1>
|
|
|
|
<% if @artist.notes.present? %>
|
|
<div class="prose">
|
|
<%= format_text(@artist.notes, :disable_mentions => true) %>
|
|
</div>
|
|
|
|
<p><%= link_to "View wiki page", @artist.wiki_page %></p>
|
|
<% end %>
|
|
|
|
<%= yield %>
|
|
|
|
<% if @artist.tag.present? && @artist.tag.post_count > 0 %>
|
|
<div class="recent-posts">
|
|
<h2>Recent Posts <%= link_to "»", posts_path(tags: @artist.name) %></h2>
|
|
|
|
<%= render "posts/partials/common/inline_blacklist" %>
|
|
|
|
<div>
|
|
<%= post_previews_html(@artist.tag.posts.limit(8), tags: @artist.name) %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|