Skip to content
Snippets Groups Projects
Commit e79b0dd7 authored by Jacob Schatz's avatar Jacob Schatz
Browse files

Simplify random user generation.

parent ffd2416c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -51,12 +51,7 @@ 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
@user = User.new(id: 0, name: 'John Doe', username: '@johndoe')
end
 
private
Loading
Loading
Loading
Loading
@@ -345,11 +345,11 @@
%ul
%li
%a.dropdown-menu-user-link.is-active{href: "#"}
= link_to_member_avatar(@some_user, size: 30)
= link_to_member_avatar(@user, size: 30)
%strong.dropdown-menu-user-full-name
= @some_user.name
= @user.name
.dropdown-menu-user-username
= @some_user.to_reference
= @user.to_reference
 
.example
%div
Loading
Loading
@@ -372,11 +372,11 @@
%ul
%li
%a.dropdown-menu-user-link.is-active{href: "#"}
= link_to_member_avatar(@some_user, size: 30)
= link_to_member_avatar(@user, size: 30)
%strong.dropdown-menu-user-full-name
= @some_user.name
= @user.name
.dropdown-menu-user-username
= @some_user.to_reference
= @user.to_reference
.dropdown-page-two
.dropdown-title
%button.dropdown-title-button.dropdown-menu-back{aria: {label: "Go back"}}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment