potential fix for #1769, add missing jquery ui icons
@ -105,8 +105,8 @@
|
||||
var $dest = $("#related-tags");
|
||||
$dest.empty();
|
||||
|
||||
$dest.append(this.build_html("recent", this.other_tags(Danbooru.Cookie.get("recent_tags"))));
|
||||
$dest.append(this.build_html("frequent", this.other_tags(Danbooru.meta("favorite-tags"))));
|
||||
$dest.append(this.build_html("recent", this.other_tags(Danbooru.Cookie.get("recent_tags_with_categories"))));
|
||||
$dest.append(this.build_html("frequent", this.other_tags(Danbooru.Cookie.get("favorite_tags_with_categories"))));
|
||||
$dest.append(this.build_html(query, related_tags));
|
||||
if (wiki_page_tags.length) {
|
||||
$dest.append(Danbooru.RelatedTag.build_html("wiki:" + query, wiki_page_tags));
|
||||
|
@ -90,8 +90,9 @@ private
|
||||
def save_recent_tags
|
||||
if @post
|
||||
tags = Tag.scan_tags(@post.tag_string)
|
||||
tags = TagAlias.to_aliased(tags) + Tag.scan_tags(cookies[:recent_tags])
|
||||
cookies[:recent_tags] = Tag.categories_for(tags.uniq.slice(0, 30)).to_a.flatten.join(" ")
|
||||
tags = (TagAlias.to_aliased(tags) + Tag.scan_tags(cookies[:recent_tags])).uniq.slice(0, 30)
|
||||
cookies[:recent_tags] = tags.join(" ")
|
||||
cookies[:recent_tags_with_categories] = Tag.categories_for(tags).to_a.flatten.join(" ")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -53,8 +53,9 @@ protected
|
||||
def save_recent_tags
|
||||
if @upload
|
||||
tags = Tag.scan_tags(@upload.tag_string)
|
||||
tags = TagAlias.to_aliased(tags) + Tag.scan_tags(cookies[:recent_tags])
|
||||
cookies[:recent_tags] = Tag.categories_for(tags.uniq.slice(0, 30).join(" ")).to_a.flatten.join(" ")
|
||||
tags = (TagAlias.to_aliased(tags) + Tag.scan_tags(cookies[:recent_tags])).uniq.slice(0, 30)
|
||||
cookies[:recent_tags] = tags.join(" ")
|
||||
cookies[:recent_tags_with_categories] = Tag.categories_for(tags).to_a.flatten.join(" ")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -84,7 +84,9 @@ private
|
||||
|
||||
def store_favorite_tags_in_cookies
|
||||
if cookies[:favorite_tags].blank? && CurrentUser.user.favorite_tags.present?
|
||||
cookies[:favorite_tags] = Tag.categories_for(CurrentUser.user.favorite_tags.scan(/\S+/)).to_a.flatten.join(" ")
|
||||
favorite_tags = CurrentUser.user.favorite_tags.slice(0, 1024)
|
||||
cookies[:favorite_tags] = favorite_tags
|
||||
cookies[:favorite_tags_with_categories] = Tag.categories_for(favorite_tags.scan(/\S+/)).to_a.flatten.join(" ")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -107,7 +107,6 @@
|
||||
<meta name="post-is-flagged" content="<%= @post.is_flagged? %>">
|
||||
<meta name="config-large-width" content="<%= Danbooru.config.large_image_width %>">
|
||||
<meta name="always-resize-images" content="<%= CurrentUser.user.always_resize_images? %>">
|
||||
<meta name="favorite-tags" content="<%= cookies[:favorite_tags] %>">
|
||||
<meta property="og:title" content="<%= h @post.presenter.humanized_essential_tag_string %> - <%= Danbooru.config.app_name %>">
|
||||
<meta property="og:description" content="<%= h @post.presenter.humanized_tag_string %>">
|
||||
<meta property="og:image" content="<%= @post.preview_file_url %>">
|
||||
|
@ -89,8 +89,4 @@
|
||||
Upload - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
|
||||
<% content_for(:html_header) do %>
|
||||
<meta name="favorite-tags" content="<%= cookies[:favorite_tags] %>">
|
||||
<% end %>
|
||||
|
||||
<%= render "posts/partials/common/secondary_links" %>
|
||||
|
BIN
public/images/animated-overlay.gif
Executable file
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 180 B After Width: | Height: | Size: 212 B |
BIN
public/images/ui-bg_flat_50_dadada_40x100.png
Executable file
After Width: | Height: | Size: 230 B |
BIN
public/images/ui-bg_flat_55_fbf9ee_40x100.png
Executable file
After Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 208 B |
BIN
public/images/ui-bg_flat_95_fef1ec_40x100.png
Executable file
After Width: | Height: | Size: 206 B |
BIN
public/images/ui-bg_highlight-soft_0_aaaaaa_1x100.png
Executable file
After Width: | Height: | Size: 203 B |
BIN
public/images/ui-bg_highlight-soft_65_ffffff_1x100.png
Executable file
After Width: | Height: | Size: 203 B |
Before Width: | Height: | Size: 101 B After Width: | Height: | Size: 280 B |
BIN
public/images/ui-bg_highlight-soft_75_e6e6e6_1x100.png
Executable file
After Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.4 KiB |