Fix avatars in the network graph for relative-url setups.
Created by: thmo
This fixes the avatar URL in case there is a relative URL root.
Merge request reports
Activity
201 201 stroke: @colors[commit.space] 202 202 "stroke-width": 2 203 203 ) 204 r.image(commit.author.icon, avatar_box_x, avatar_box_y, 20, 20) 204 r.image(gon.relative_url_root + commit.author.icon, avatar_box_x, avatar_box_y, 20, 20) 201 201 stroke: @colors[commit.space] 202 202 "stroke-width": 2 203 203 ) 204 r.image(commit.author.icon, avatar_box_x, avatar_box_y, 20, 20) 204 r.image(gon.relative_url_root + commit.author.icon, avatar_box_x, avatar_box_y, 20, 20) Created by: thmo
This is set here, if I'm not mistaken: https://github.com/gitlabhq/gitlabhq/blob/6-7-stable/app/controllers/application_controller.rb#L168
By Administrator on 2014-04-07T18:03:26 (imported from GitLab project)
By Administrator on 2014-04-07T18:03:26 (imported from GitLab)
201 201 stroke: @colors[commit.space] 202 202 "stroke-width": 2 203 203 ) 204 r.image(commit.author.icon, avatar_box_x, avatar_box_y, 20, 20) 204 r.image(gon.relative_url_root + commit.author.icon, avatar_box_x, avatar_box_y, 20, 20) Created by: thmo
And here: https://github.com/gitlabhq/gitlabhq/blob/6-7-stable/app/views/layouts/_head.html.haml#L10
By Administrator on 2014-04-07T18:07:08 (imported from GitLab project)
By Administrator on 2014-04-07T18:07:08 (imported from GitLab)
201 201 stroke: @colors[commit.space] 202 202 "stroke-width": 2 203 203 ) 204 r.image(commit.author.icon, avatar_box_x, avatar_box_y, 20, 20) 204 r.image(gon.relative_url_root + commit.author.icon, avatar_box_x, avatar_box_y, 20, 20) Created by: jvanbaarsen
@razer6 / @randx Sorry, totally overlooked it. Will pay closer attention next time!
By Administrator on 2014-04-08T12:27:53 (imported from GitLab project)
By Administrator on 2014-04-08T12:27:53 (imported from GitLab)
Created by: jvanbaarsen
@thmo Yeah please
By Administrator on 2014-04-08T12:43:20 (imported from GitLab project)
By Administrator on 2014-04-08T12:43:20 (imported from GitLab)
Created by: maxlazio
I will revert this on the stable branch because we didn't test this and it doesn't make any sense to have an untested code in stable.
By Administrator on 2014-04-10T07:56:05 (imported from GitLab project)
By Administrator on 2014-04-10T07:56:05 (imported from GitLab)
Created by: Razer6
@maxlazio Could you cherry-pick this to master?
By Administrator on 2014-04-10T08:04:33 (imported from GitLab project)
By Administrator on 2014-04-10T08:04:33 (imported from GitLab)
Created by: maxlazio
@razer6 Already done :)
By Administrator on 2014-04-10T08:07:18 (imported from GitLab project)
By Administrator on 2014-04-10T08:07:18 (imported from GitLab)
Created by: maxlazio
@thmo No need for a new PR. Thanks
By Administrator on 2014-04-10T08:07:36 (imported from GitLab project)
By Administrator on 2014-04-10T08:07:36 (imported from GitLab)