Commit graph

13 commits

Author SHA1 Message Date
Andreas Brandl
4f3d75326c Extract method to improve readability. 2018-02-13 18:04:52 +01:00
Andreas Brandl
c641dff094 Explicit use of avatar_icon_* calls depending on situation.
We want to drop the generic #avatar_icon helper that supports both an email
and a user object being passed in. Instead, we want to explicitly use the #avatar_icon_for_user
and #avatar_icon_for_email helpers depending on what we have at hand.
This allows us to avoid unnecessary database queries (e.g. call
User.find_by_any_email if we already have the user).

In situations like here, this makes it less convenient to use.
2018-02-13 18:04:51 +01:00
kushalpandya
abb9981d20 Add data-src when image is to be lazy loaded, use tag helper instead of image_tag helper 2017-09-25 11:49:20 +05:30
Clement Ho
ee22930044 Remove tooltip from filtered search user 2017-08-22 16:41:17 -05:00
Tim Zallmann
cb1b4af099 Resolve "User dropdown in filtered search does not load avatar on master" 2017-08-07 21:44:42 +00:00
Tim Zallmann
52b8a0db68 Resolve "Lazy load images on the Frontend" 2017-07-24 17:36:52 +00:00
Winnie Hellmann
f2b34fb208 Show current user immediately in issuable filters 2017-06-02 07:42:18 +00:00
Filipa Lacerda
28f85cefde Removes 'hidden-xs' class from user_avatar helper in order for it to be visible in environments list.
Allows a class as an option to keep the hidden avatar behaviour in all the places it is needed.
2016-10-06 11:32:58 +01:00
Phil Hughes
117893eee7 Fix layout issues with blame table
Closes #21216
2016-09-06 10:36:09 +01:00
Jacob Schatz
8d1c7c5dc9 Merge branch '20059-environment-list' into 'master'
Resolve "Format branch, tag, and commit in environment list"

## What does this MR do?
Updates Environments page rows to match the new pipeline updates

## Are there points in the code the reviewer needs to double check?
I removed `private` from `avatars_helper.rb` so I could use `user_avatar`.

## What are the relevant issue numbers?
Closes #20059 

## Screenshots (if relevant)
![Screen_Shot_2016-08-08_at_11.44.36_AM](/uploads/62fbb475a7d9cc613fe5ba1715229553/Screen_Shot_2016-08-08_at_11.44.36_AM.png)
![Screen_Shot_2016-08-08_at_11.44.41_AM](/uploads/ce1bd3ab62c0bc8091e9b6f85012ed36/Screen_Shot_2016-08-08_at_11.44.41_AM.png)



See merge request !5687
2016-08-12 17:00:16 +00:00
Annabel Dunstone
415921a7f3 Add avatar to commit message; environment style updates to match pipelines page 2016-08-08 11:03:18 -05:00
Gabriel Mazetto
2aa2f52191 Enable Style/EmptyLinesAroundModuleBody cop 2016-08-06 03:44:39 +02:00
winniehell
6558586f15 Add link to user profile to commit avatar (!5163) 2016-07-20 17:44:28 +02:00