Merge branch 'user-callout-dismissed-method-rename' into 'master'
Fixed the show_user_callout method See merge request !11689
This commit is contained in:
commit
f9f0424443
|
@ -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)
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue