fixes
This commit is contained in:
@@ -497,19 +497,19 @@ class Post < ActiveRecord::Base
|
|||||||
tag_categories = Tag.categories_for(tag_array)
|
tag_categories = Tag.categories_for(tag_array)
|
||||||
tag_array.each do |tag|
|
tag_array.each do |tag|
|
||||||
if tag_categories[tag] == Danbooru.config.tag_category_mapping["copyright"]
|
if tag_categories[tag] == Danbooru.config.tag_category_mapping["copyright"]
|
||||||
return "copyright: " + tag
|
return tag
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
tag_array.each do |tag|
|
tag_array.each do |tag|
|
||||||
if tag_categories[tag] == Danbooru.config.tag_category_mapping["character"]
|
if tag_categories[tag] == Danbooru.config.tag_category_mapping["character"]
|
||||||
return "character: " + tag
|
return tag
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
tag_array.each do |tag|
|
tag_array.each do |tag|
|
||||||
if tag_categories[tag] == Danbooru.config.tag_category_mapping["artist"]
|
if tag_categories[tag] == Danbooru.config.tag_category_mapping["artist"]
|
||||||
return "artist: " + tag
|
return tag
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +1,23 @@
|
|||||||
<div id="c-landings">
|
<% cache(:expires_in => 1.hour) do %>
|
||||||
<div id="a-show">
|
<div id="c-landings">
|
||||||
<h1><%= link_to Danbooru.config.app_name, posts_path %></h1>
|
<div id="a-show">
|
||||||
<p class="slogan">Find good art fast</p>
|
<h1><%= link_to Danbooru.config.app_name, posts_path %></h1>
|
||||||
|
<p class="slogan">Find good art fast</p>
|
||||||
|
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<% @explorer.col1.each do |post| %>
|
<% @explorer.col1.each do |post| %>
|
||||||
<%= render "image", :post => post %>
|
<%= render "image", :post => post %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<% @explorer.col2.each do |post| %>
|
<% @explorer.col2.each do |post| %>
|
||||||
<%= render "image", :post => post %>
|
<%= render "image", :post => post %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<% end %>
|
||||||
|
|
||||||
<% content_for(:page_title) do %>
|
<% content_for(:page_title) do %>
|
||||||
<%= Danbooru.config.app_name %>
|
<%= Danbooru.config.app_name %>
|
||||||
|
|||||||
Reference in New Issue
Block a user