Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1d062b4b
Commit
1d062b4b
authored
Oct 27, 2020
by
fjsanpedro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable avatar with full url
parent
0dffbcb4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
21 deletions
+6
-21
app/helpers/page_layout_helper.rb
app/helpers/page_layout_helper.rb
+1
-4
changelogs/unreleased/273142-fj-enable-avatar-with-full-url.yml
...logs/unreleased/273142-fj-enable-avatar-with-full-url.yml
+5
-0
config/feature_flags/development/avatar_with_host.yml
config/feature_flags/development/avatar_with_host.yml
+0
-7
spec/helpers/page_layout_helper_spec.rb
spec/helpers/page_layout_helper_spec.rb
+0
-10
No files found.
app/helpers/page_layout_helper.rb
View file @
1d062b4b
...
...
@@ -57,10 +57,7 @@ module PageLayoutHelper
subject
=
@project
||
@user
||
@group
args
=
{}
args
[
:only_path
]
=
false
if
Feature
.
enabled?
(
:avatar_with_host
)
image
=
subject
.
avatar_url
(
args
)
if
subject
.
present?
image
=
subject
.
avatar_url
(
only_path:
false
)
if
subject
.
present?
image
||
default
end
...
...
changelogs/unreleased/273142-fj-enable-avatar-with-full-url.yml
0 → 100644
View file @
1d062b4b
---
title
:
Enable rendering avatars with full url
merge_request
:
46206
author
:
type
:
fixed
config/feature_flags/development/avatar_with_host.yml
deleted
100644 → 0
View file @
0dffbcb4
---
name
:
avatar_with_host
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/45776
rollout_issue_url
:
type
:
development
group
:
group::editor
default_enabled
:
false
spec/helpers/page_layout_helper_spec.rb
View file @
1d062b4b
...
...
@@ -82,16 +82,6 @@ RSpec.describe PageLayoutHelper do
expect
(
helper
.
page_image
).
to
match_asset_path
'assets/gitlab_logo.png'
end
end
context
'if avatar_with_host is disabled'
do
it
"
#{
type
.
titlecase
}
does not generate avatar full url"
do
stub_feature_flags
(
avatar_with_host:
false
)
assign
(
type
,
object
)
expect
(
helper
.
page_image
).
to
eq
object
.
avatar_url
(
only_path:
true
)
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment