Merge branch 'user-callout-dismissed-method-rename' into 'master'

Fixed the show_user_callout method

See merge request !11689
This commit is contained in:
Douwe Maan 2017-05-31 16:26:10 +00:00
commit f9f0424443
3 changed files with 3 additions and 3 deletions

View File

@ -276,7 +276,7 @@ module ApplicationHelper
end
def show_user_callout?
cookies[:user_callout_dismissed] == 'true'
cookies[:user_callout_dismissed].nil?
end
def linkedin_url(user)

View File

@ -9,7 +9,7 @@
= render "projects/last_push"
%div{ class: container_class }
- unless show_user_callout?
- if show_user_callout?
= render 'shared/user_callout'
- if @projects.any? || params[:name]

View File

@ -100,7 +100,7 @@
Snippets
%div{ class: container_class }
- if @user == current_user && !show_user_callout?
- if @user == current_user && show_user_callout?
= render 'shared/user_callout'
.tab-content
#activity.tab-pane