Commit ffd2416c authored by Jacob Schatz's avatar Jacob Schatz

Make a user available for the user variable

parent 737087f7
...@@ -51,6 +51,12 @@ class HelpController < ApplicationController ...@@ -51,6 +51,12 @@ class HelpController < ApplicationController
end end
def ui 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 end
private private
......
...@@ -345,11 +345,11 @@ ...@@ -345,11 +345,11 @@
%ul %ul
%li %li
%a.dropdown-menu-user-link.is-active{href: "#"} %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 %strong.dropdown-menu-user-full-name
= current_user.name = @some_user.name
.dropdown-menu-user-username .dropdown-menu-user-username
= current_user.to_reference = @some_user.to_reference
.example .example
%div %div
...@@ -372,11 +372,11 @@ ...@@ -372,11 +372,11 @@
%ul %ul
%li %li
%a.dropdown-menu-user-link.is-active{href: "#"} %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 %strong.dropdown-menu-user-full-name
= current_user.name = @some_user.name
.dropdown-menu-user-username .dropdown-menu-user-username
= current_user.to_reference = @some_user.to_reference
.dropdown-page-two .dropdown-page-two
.dropdown-title .dropdown-title
%button.dropdown-title-button.dropdown-menu-back{aria: {label: "Go back"}} %button.dropdown-title-button.dropdown-menu-back{aria: {label: "Go back"}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment