From 313943ba05fe794920a7fa9b1a5c7fed9ce5cece Mon Sep 17 00:00:00 2001 From: Toks Date: Sun, 14 Apr 2013 18:18:24 -0400 Subject: [PATCH] fixes #1330 --- app/presenters/user_presenter.rb | 4 ++++ app/views/users/_statistics.html.erb | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/app/presenters/user_presenter.rb b/app/presenters/user_presenter.rb index 204c34356..7eab088a3 100644 --- a/app/presenters/user_presenter.rb +++ b/app/presenters/user_presenter.rb @@ -95,6 +95,10 @@ class UserPresenter template.link_to(WikiPageVersion.for_user(user.id).count, template.wiki_page_versions_path(:search => {:updater_id => user.id})) end + def artist_version_count(template) + template.link_to(ArtistVersion.for_user(user.id).count, template.artist_versions_path(:search => {:updater_id => user.id})) + end + def forum_post_count(template) template.link_to(ForumPost.for_user(user.id).count, template.forum_posts_path(:search => {:creator_id => user.id})) end diff --git a/app/views/users/_statistics.html.erb b/app/views/users/_statistics.html.erb index 3c94edafc..5f7bbce5b 100644 --- a/app/views/users/_statistics.html.erb +++ b/app/views/users/_statistics.html.erb @@ -59,6 +59,11 @@ <%= presenter.wiki_page_version_count(self) %> + + Artist Changes + <%= presenter.artist_version_count(self) %> + + Pool Changes <%= presenter.pool_version_count(self) %>