alt layout for user profile
This commit is contained in:
@@ -37,6 +37,10 @@ class UserPresenter
|
||||
Post.where("id in (?)", subscription.post_id_array.slice(0, 6).map(&:to_i)).order("id desc")
|
||||
end
|
||||
|
||||
def tag_links_for_subscription(template, subscription)
|
||||
subscription.tag_query_array.map {|x| template.link_to(x.tr("_", " "), template.posts_path(:tags => x))}.join(", ").html_safe
|
||||
end
|
||||
|
||||
def upload_limit
|
||||
deleted_count = Post.for_user(user.id).deleted.count
|
||||
pending_count = Post.for_user(user.id).pending.count
|
||||
|
||||
Reference in New Issue
Block a user