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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
2f0c3ca3
Commit
2f0c3ca3
authored
Feb 29, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed too many changes buttons to white
Closes #13751
parent
f838dbe4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
app/views/projects/diffs/_warning.html.haml
app/views/projects/diffs/_warning.html.haml
+5
-6
No files found.
app/views/projects/diffs/_warning.html.haml
View file @
2f0c3ca3
...
@@ -3,17 +3,16 @@
...
@@ -3,17 +3,16 @@
Too many changes to show.
Too many changes to show.
.pull-right
.pull-right
-
unless
diff_hard_limit_enabled?
-
unless
diff_hard_limit_enabled?
=
link_to
"Reload with full diff"
,
url_for
(
params
.
merge
(
force_show_diff:
true
,
format:
nil
)),
class:
"btn btn-sm
btn-warning
"
=
link_to
"Reload with full diff"
,
url_for
(
params
.
merge
(
force_show_diff:
true
,
format:
nil
)),
class:
"btn btn-sm"
-
if
current_controller?
(
:commit
)
or
current_controller?
(
:merge_requests
)
-
if
current_controller?
(
:commit
)
or
current_controller?
(
:merge_requests
)
-
if
current_controller?
(
:commit
)
-
if
current_controller?
(
:commit
)
=
link_to
"Plain diff"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :diff
),
class:
"btn btn-
warning btn-
sm"
=
link_to
"Plain diff"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :diff
),
class:
"btn btn-sm"
=
link_to
"Email patch"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :patch
),
class:
"btn btn-
warning btn-
sm"
=
link_to
"Email patch"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :patch
),
class:
"btn btn-sm"
-
elsif
@merge_request
&&
@merge_request
.
persisted?
-
elsif
@merge_request
&&
@merge_request
.
persisted?
=
link_to
"Plain diff"
,
merge_request_path
(
@merge_request
,
format: :diff
),
class:
"btn btn-
warning btn-
sm"
=
link_to
"Plain diff"
,
merge_request_path
(
@merge_request
,
format: :diff
),
class:
"btn btn-sm"
=
link_to
"Email patch"
,
merge_request_path
(
@merge_request
,
format: :patch
),
class:
"btn btn-
warning btn-
sm"
=
link_to
"Email patch"
,
merge_request_path
(
@merge_request
,
format: :patch
),
class:
"btn btn-sm"
%p
%p
To preserve performance only
To preserve performance only
%strong
#{
shown_files_count
}
of
#{
diffs
.
size
}
%strong
#{
shown_files_count
}
of
#{
diffs
.
size
}
files are displayed.
files are displayed.
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