diff --git a/app/views/artists/_show.html.erb b/app/views/artists/_show.html.erb new file mode 100644 index 000000000..d36f490f6 --- /dev/null +++ b/app/views/artists/_show.html.erb @@ -0,0 +1,28 @@ +
+
+

Artist: <%= link_to @artist.pretty_name, posts_path(:tags => @artist.name), :class => "tag-type-#{@artist.category_name}" %>

+ + <% if @artist.notes.present? && @artist.visible? %> +
+ <%= format_text(@artist.notes, :ragel => true, :disable_mentions => true) %> +
+ +

<%= link_to "View wiki page", @artist.wiki_page %>

+ <% end %> + + <%= yield %> + +
+

Recent Posts

+
+ <%= @post_set.presenter.post_previews_html(self) %> +
+
+ + <%= render "secondary_links" %> +
+
+ +<% content_for(:page_title) do %> + Artist - <%= @artist.name %> - <%= Danbooru.config.app_name %> +<% end %> diff --git a/app/views/artists/show.html.erb b/app/views/artists/show.html.erb index 94a0c1125..f07270296 100644 --- a/app/views/artists/show.html.erb +++ b/app/views/artists/show.html.erb @@ -1,35 +1,9 @@ -
-
-

Artist: <%= link_to @artist.pretty_name, posts_path(:tags => @artist.name), :class => "tag-type-#{@artist.category_name}" %>

- - <% if @artist.notes.present? && @artist.visible? %> -
- <%= format_text(@artist.notes, :ragel => true, :disable_mentions => true) %> -
- -

<%= link_to "View wiki page", @artist.wiki_page %>

- <% end %> - - <% if @artist.visible? %> -
- <%= render "summary", artist: @artist %> -
- - <% else %> -

The artist requested removal of this page.

- <% end %> - -
-

Recent Posts

-
- <%= @post_set.presenter.post_previews_html(self) %> -
+<%= render layout: "show" do %> + <% if @artist.visible? %> +
+ <%= render "summary", artist: @artist %>
- - <%= render "secondary_links" %> -
-
- -<% content_for(:page_title) do %> - Artist - <%= @artist.name %> - <%= Danbooru.config.app_name %> + <% else %> +

The artist requested removal of this page.

+ <% end %> <% end %>