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
Tatuya Kamada
gitlab-ce
Commits
63a97c11
Commit
63a97c11
authored
Aug 25, 2016
by
Patricio Cano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Syntax and style fixes.
parent
0227e98d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
app/models/project.rb
app/models/project.rb
+4
-1
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+1
-1
No files found.
app/models/project.rb
View file @
63a97c11
...
...
@@ -391,7 +391,10 @@ class Project < ActiveRecord::Base
end
def
lfs_enabled?
(
Gitlab
.
config
.
lfs
.
enabled
&&
enable_lfs
)
||
(
enable_lfs
.
nil?
&&
Gitlab
.
config
.
lfs
.
enabled
)
return
false
unless
Gitlab
.
config
.
lfs
.
enabled
return
Gitlab
.
config
.
lfs
.
enabled
if
enable_lfs
.
nil?
enable_lfs
end
def
repository_storage_path
...
...
app/views/projects/edit.html.haml
View file @
63a97c11
...
...
@@ -84,7 +84,7 @@
.form-group
.checkbox
=
f
.
label
:enable_lfs
do
=
f
.
check_box
:enable_lfs
,
checked:
(
true
if
@project
.
enable_lfs
||
@project
.
enable_lfs
.
nil?
)
=
f
.
check_box
:enable_lfs
,
checked:
@project
.
lfs_enabled?
%strong
LFS
%br
%span
.descr
Git Large File Storage
...
...
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