fix references to uploader metatag

This commit is contained in:
albert
2013-02-18 14:53:41 -05:00
parent 85a8132ad8
commit afb5d3138f
4 changed files with 5 additions and 5 deletions

View File

@@ -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)) {

View File

@@ -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");

View File

@@ -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)

View File

@@ -35,7 +35,7 @@
&larr; <%= 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>