83 lines
2.2 KiB
Plaintext
83 lines
2.2 KiB
Plaintext
<div id="c-artists">
|
|
<div id="a-show">
|
|
<h1>Artist: <%= @artist.name.tr("_", " ") %></h1>
|
|
|
|
<% unless @artist.notes.blank? %>
|
|
<div class="prose">
|
|
<%= format_text(@artist.notes) %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div>
|
|
<table width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<th width="15%">Status</th>
|
|
<td width="85%">
|
|
<% if @artist.is_banned? %>
|
|
Banned
|
|
<% elsif @artist.is_active? %>
|
|
Active
|
|
<% else %>
|
|
Inactive
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% if @artist.has_tag_alias? %>
|
|
<tr>
|
|
<th>Tag Alias</th>
|
|
<td>
|
|
<%= @artist.tag_alias_name %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
<% if !@artist.other_names.blank? %>
|
|
<tr>
|
|
<th>Other Names</th>
|
|
<td>
|
|
<%= link_to_artists(@artist.other_names.split(/,/)) %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
<% if !@artist.group_name.blank? %>
|
|
<tr>
|
|
<th>Group</th>
|
|
<td>
|
|
<%= link_to_artist(@artist.group_name) %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
<% if @artist.members.any? %>
|
|
<tr>
|
|
<th>Members</th>
|
|
<td>
|
|
<%= link_to_artists(@artist.members.map(&:name)) %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
<% @artist.urls.each do |url| %>
|
|
<tr>
|
|
<th>URLs</th>
|
|
<td>
|
|
<%= link_to h(url.to_s), h(url.to_s) %>
|
|
<% if CurrentUser.user.is_moderator? %>
|
|
(<%#= link_to("mass edit", mass_edit_admin_posts_path(:antecedent => "-#{@artist.name} source:#{ArtistUrl.normalize_for_search(url.to_s)}", :consequent => @artist.name)) %>)
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div>
|
|
<h1>Recent Posts</h1>
|
|
<div style="margin: 1em 0;">
|
|
<%= @post_set.presenter.post_previews_html(self) %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|
|
</div>
|
|
</div>
|