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
0
Merge Requests
0
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
Kazuhiko Shiozaki
gitlab-ce
Commits
a215e2ee
Commit
a215e2ee
authored
Mar 07, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert changes in the Project model
parent
fc90d9e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
app/models/project.rb
app/models/project.rb
+3
-4
No files found.
app/models/project.rb
View file @
a215e2ee
...
@@ -56,7 +56,6 @@ class Project < ActiveRecord::Base
...
@@ -56,7 +56,6 @@ class Project < ActiveRecord::Base
extend
Gitlab
::
ConfigHelper
extend
Gitlab
::
ConfigHelper
UNKNOWN_IMPORT_URL
=
'http://unknown.git'
UNKNOWN_IMPORT_URL
=
'http://unknown.git'
AVATAR_BRANCH
=
'master'
default_value_for
:archived
,
false
default_value_for
:archived
,
false
default_value_for
:visibility_level
,
gitlab_config_features
.
visibility_level
default_value_for
:visibility_level
,
gitlab_config_features
.
visibility_level
...
@@ -545,9 +544,9 @@ class Project < ActiveRecord::Base
...
@@ -545,9 +544,9 @@ class Project < ActiveRecord::Base
end
end
def
avatar_in_git
def
avatar_in_git
@avatar_file
||=
'logo.png'
if
repository
.
blob_at_branch
(
AVATAR_BRANCH
,
'logo.png'
)
@avatar_file
||=
'logo.png'
if
repository
.
blob_at_branch
(
'master'
,
'logo.png'
)
@avatar_file
||=
'logo.jpg'
if
repository
.
blob_at_branch
(
AVATAR_BRANCH
,
'logo.jpg'
)
@avatar_file
||=
'logo.jpg'
if
repository
.
blob_at_branch
(
'master'
,
'logo.jpg'
)
@avatar_file
||=
'logo.gif'
if
repository
.
blob_at_branch
(
AVATAR_BRANCH
,
'logo.gif'
)
@avatar_file
||=
'logo.gif'
if
repository
.
blob_at_branch
(
'master'
,
'logo.gif'
)
@avatar_file
@avatar_file
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