fix references to uploader metatag
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
var $post = $(post);
|
||||
var tags = String($post.data("tags")).match(/\S+/g) || [];
|
||||
tags.push("rating:" + $post.data("rating"));
|
||||
tags.push("uploader:" + $post.data("uploader"));
|
||||
tags.push("user:" + $post.data("user"));
|
||||
|
||||
if (blacklist.require.length > 0 || blacklist.exclude.length > 0) {
|
||||
if (blacklist.require.length === 0 || Danbooru.is_subset(tags, blacklist.require)) {
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
Danbooru.Post.initialize_title_for = function(post) {
|
||||
var $post = $(post);
|
||||
$post.attr("title", $post.data("tags") + " uploader:" + $post.data("uploader") + " rating:" + $post.data("rating") + " score:" + $post.data("score"));
|
||||
$post.attr("title", $post.data("tags") + " user:" + $post.data("uploader") + " rating:" + $post.data("rating") + " score:" + $post.data("score"));
|
||||
|
||||
var status = $post.data("flags");
|
||||
|
||||
|
||||
@@ -58,11 +58,11 @@ class UserPresenter
|
||||
end
|
||||
|
||||
def uploads(template)
|
||||
template.link_to(user.post_upload_count, template.posts_path(:tags => "uploader:#{user.name}"))
|
||||
template.link_to(user.post_upload_count, template.posts_path(:tags => "user:#{user.name}"))
|
||||
end
|
||||
|
||||
def deleted_uploads(template)
|
||||
template.link_to(Post.for_user(user.id).deleted.count, template.posts_path(:tags => "status:deleted uploader:#{user.name}"))
|
||||
template.link_to(Post.for_user(user.id).deleted.count, template.posts_path(:tags => "status:deleted user:#{user.name}"))
|
||||
end
|
||||
|
||||
def favorites(template)
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
← <%= link_to user.inviter.name, user_path(user.inviter_id) %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td><%= link_to user.posts.count, posts_path(:tags => "uploader:#{user.name}") %></td>
|
||||
<td><%= link_to user.posts.count, posts_path(:tags => "user:#{user.name}") %></td>
|
||||
<td><%= user.posts.deleted.count %></td>
|
||||
<% if user.posts.count > 100 %>
|
||||
<td><%= number_to_percentage(100 * user.posts.positive.count.to_f / user.posts.count, :precision => 0) %></td>
|
||||
|
||||
Reference in New Issue
Block a user