Commit Graph

21 Commits

Author SHA1 Message Date
Stan Hu b49e6b419a Fix Error 500 when forking projects with Gravatar disabled
When Gravatar is disabled, the "no avatar" is used, which failed
to revert to the colorful identity icons for namespaces.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50254
2018-09-28 07:39:58 -04:00
gfyoung 1993a4449a Enable frozen string for app/helpers/**/*.rb
Partially addresses #47424.
2018-09-06 17:33:46 -07:00
George Tsiolis e40d626b68 Add default avatar to group 2018-08-09 13:47:47 +00:00
Paul Slaughter fbfe04401d Add vanilla JS avatar_helper and update existing avatar helpers 2018-08-01 19:43:50 +00:00
Clement Ho f9e2b4730f Merge branch 'master' into 'bootstrap4'
# Conflicts:
#   app/views/projects/branches/_branch.html.haml
2018-05-01 16:21:47 +00:00
Douwe Maan fcc41fe396
Fix commit trailer rendering when Gravatar is disabled 2018-04-25 17:32:51 +02:00
Clement Ho bc6986f728 [skip ci] Fix display style for pipeline header 2018-04-13 16:02:29 -05:00
Clement Ho 9bcf8f43c6 [skip ci] Replace hidden-xs 2018-04-09 16:50:40 -05:00
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