diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index b043282e..6169ee7c 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -44,6 +44,7 @@ def update def dashboard redirect_to(root_url) unless user_signed_in? @pending = { main: current_user.unseen_notifications.count } + @crumbs = ['User dashboard'] if current_user.admin? @contributor_applications = User.contributor_applications diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index cec8f2ff..9ae83fb2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -113,6 +113,10 @@ def longer_list(title = '', hide_over = 3, elements = nil, &blk) end end + def current_community_member? + current_user.try :community_member? + end + def current_contributor? current_user.try :contributor? end diff --git a/app/views/users/_actions.html.erb b/app/views/users/_actions.html.erb index 4de676da..c56bf1db 100644 --- a/app/views/users/_actions.html.erb +++ b/app/views/users/_actions.html.erb @@ -27,6 +27,17 @@ <% end %> <% end %> + <% unless current_community_member? %> + + <% end %> + <% if false # Do not include this option for now %>