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
5767a298
Commit
5767a298
authored
Sep 23, 2020
by
nmilojevic1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add popular avatar sizes for user, group and project
- Allow all supported avatar sizes
parent
334e139d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
app/models/concerns/avatarable.rb
app/models/concerns/avatarable.rb
+5
-10
No files found.
app/models/concerns/avatarable.rb
View file @
5767a298
...
...
@@ -3,16 +3,11 @@
module
Avatarable
extend
ActiveSupport
::
Concern
ALLOWED_IMAGE_SCALER_WIDTHS
=
[
400
,
200
,
64
,
48
,
40
,
26
,
20
,
16
].
freeze
USER_AVATAR_SIZES
=
[
16
,
20
,
23
,
24
,
26
,
32
,
36
,
38
,
40
,
48
,
60
,
64
,
96
,
120
,
160
].
freeze
PROJECT_AVATAR_SIZES
=
[
15
,
40
,
48
,
64
,
88
].
freeze
GROUP_AVATAR_SIZES
=
[
15
,
37
,
38
,
39
,
40
,
64
,
96
].
freeze
ALLOWED_IMAGE_SCALER_WIDTHS
=
(
USER_AVATAR_SIZES
|
PROJECT_AVATAR_SIZES
|
GROUP_AVATAR_SIZES
).
freeze
included
do
prepend
ShadowMethods
...
...
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