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
ffd2416c
Commit
ffd2416c
authored
Apr 16, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make a user available for the user variable
parent
737087f7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
app/controllers/help_controller.rb
app/controllers/help_controller.rb
+6
-0
app/views/help/ui.html.haml
app/views/help/ui.html.haml
+6
-6
No files found.
app/controllers/help_controller.rb
View file @
ffd2416c
...
...
@@ -51,6 +51,12 @@ class HelpController < ApplicationController
end
def
ui
# this will work on gitlab.com
@some_user
=
User
.
find_by
(
username:
'dzaporozhets'
)
if
@some_user
.
nil?
# this will work in dev
@some_user
=
User
.
find
(
1
)
end
end
private
...
...
app/views/help/ui.html.haml
View file @
ffd2416c
...
...
@@ -345,11 +345,11 @@
%ul
%li
%a
.dropdown-menu-user-link.is-active
{
href:
"#"
}
=
link_to_member_avatar
(
current
_user
,
size:
30
)
=
link_to_member_avatar
(
@some
_user
,
size:
30
)
%strong
.dropdown-menu-user-full-name
=
current
_user
.
name
=
@some
_user
.
name
.dropdown-menu-user-username
=
current
_user
.
to_reference
=
@some
_user
.
to_reference
.example
%div
...
...
@@ -372,11 +372,11 @@
%ul
%li
%a
.dropdown-menu-user-link.is-active
{
href:
"#"
}
=
link_to_member_avatar
(
current
_user
,
size:
30
)
=
link_to_member_avatar
(
@some
_user
,
size:
30
)
%strong
.dropdown-menu-user-full-name
=
current
_user
.
name
=
@some
_user
.
name
.dropdown-menu-user-username
=
current
_user
.
to_reference
=
@some
_user
.
to_reference
.dropdown-page-two
.dropdown-title
%button
.dropdown-title-button.dropdown-menu-back
{
aria:
{
label:
"Go back"
}}
...
...
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