diff --git a/app/models/drupal_user.rb b/app/models/drupal_user.rb index e1e171ceb5..a20bc4d556 100644 --- a/app/models/drupal_user.rb +++ b/app/models/drupal_user.rb @@ -141,6 +141,10 @@ def note_count Node.where(status: 1, uid: uid, type: 'note').count end + def revision_count + Revision.where(uid: uid).count + end + def node_count Node.where(status: 1, uid: uid).count + Revision.where(uid: uid).count end diff --git a/app/views/notes/index.html.erb b/app/views/notes/index.html.erb index 811b9c7d3b..f924b4794d 100644 --- a/app/views/notes/index.html.erb +++ b/app/views/notes/index.html.erb @@ -11,7 +11,7 @@ <% elsif params[:action] == "author_topic" %>
<%= raw t('users.profile.view_these_maps', :url1 => "//mapknitter.org/profile/"+@user.name) %>
@@ -105,10 +105,10 @@<%= raw t('users.profile.barnstar_awarded_to_by', :url1 => "/profile/"+tag.node.author.name, :author => tag.node.author.name, :url2 => "/wiki/barnstars#"+tag.name.split(':').last.split('-').each{|w| w.capitalize!}.join('+'), :barnstar => tag.name.split(':').last.split('-').each{|w| w.capitalize!}.join(' '), :url3 => "/profile/"+tag.author.username, :awarder => tag.author.username, :url4 => tag.node.path, :work => tag.node.title) %>
-<%= raw t('users.profile.barnstar_awarded_to_by', :url1 => "/profile/"+tag.node.author.name, :author => tag.node.author.name, :url2 => "/wiki/barnstars#"+tag.name.split(':').last.split('-').each{|w| w.capitalize!}.join('+'), :barnstar => tag.name.split(':').last.split('-').each{|w| w.capitalize!}.join(' '), :url3 => "/profile/"+tag.author.username, :awarder => tag.author.username, :url4 => tag.node.path, :work => tag.node.title) %>
+