Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
a2c85942
Commit
a2c85942
authored
May 24, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the show_user_callout method
parent
ffe52f01
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+1
-1
app/views/dashboard/projects/index.html.haml
app/views/dashboard/projects/index.html.haml
+1
-1
app/views/users/show.html.haml
app/views/users/show.html.haml
+1
-1
No files found.
app/helpers/application_helper.rb
View file @
a2c85942
...
...
@@ -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
)
...
...
app/views/dashboard/projects/index.html.haml
View file @
a2c85942
...
...
@@ -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
]
...
...
app/views/users/show.html.haml
View file @
a2c85942
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment