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
Boxiang Sun
gitlab-ce
Commits
2ff83aa3
Commit
2ff83aa3
authored
Sep 09, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo.
parent
ac6a107a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/helpers/diff_helper.rb
app/helpers/diff_helper.rb
+1
-1
app/views/projects/diffs/_diffs.html.haml
app/views/projects/diffs/_diffs.html.haml
+1
-1
No files found.
app/helpers/diff_helper.rb
View file @
2ff83aa3
...
@@ -13,7 +13,7 @@ module DiffHelper
...
@@ -13,7 +13,7 @@ module DiffHelper
end
end
end
end
def
show_diff_size_warnin
i
g?
(
diffs
)
def
show_diff_size_warning?
(
diffs
)
diffs
.
size
>
allowed_diff_size
diffs
.
size
>
allowed_diff_size
end
end
...
...
app/views/projects/diffs/_diffs.html.haml
View file @
2ff83aa3
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
=
link_to
"Inline Diff"
,
url_for
(
params_copy
),
{
id:
"commit-diff-viewtype"
}
=
link_to
"Inline Diff"
,
url_for
(
params_copy
),
{
id:
"commit-diff-viewtype"
}
-
if
show_diff_size_warnin
i
g?
(
diffs
)
-
if
show_diff_size_warning?
(
diffs
)
=
render
'projects/diffs/warning'
,
diffs:
diffs
=
render
'projects/diffs/warning'
,
diffs:
diffs
.files
.files
...
...
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