Files
danbooru/app/views/posts/partials/show/_embedded.html.erb
evazion 0c483cad15 config: fix references to Danbooru.config.app_name.
Danbooru.config.app_name is either Safebooru or Danbooru. Fix some
places where it should always be Danbooru.
2019-12-06 01:33:52 -06:00

18 lines
903 B
Plaintext

<% if post.banblocked? -%>
<p>The artist requested removal of this image.</p>
<% elsif post.levelblocked? -%>
<p><%= link_to("You need a gold account to see this image", new_user_upgrade_path) %>.</p>
<% elsif post.safeblocked? -%>
<p>This image is unavailable on <%= Danbooru.config.app_name %>. Go to <%= link_to("Danbooru", "https://danbooru.donmai.us") %> or disable safe mode to view (<%= link_to_wiki "learn more", "help:user_settings" %>).</p>
<% elsif post.is_flash? -%>
<%= render("posts/partials/show/flash", post: post) -%>
<% elsif post.is_video? -%>
<%= render("posts/partials/show/video", post: post) -%>
<% elsif post.is_ugoira? -%>
<%= render("posts/partials/show/ugoira", post: post) -%>
<% elsif !post.is_image? -%>
<%= render("posts/partials/show/download", post: post) -%>
<% elsif post.is_image? -%>
<%= render("posts/partials/show/image", post: post) -%>
<% end %>