MR: Handle broken diff ex. in case its too huge
This commit is contained in:
parent
d40b9ce26d
commit
0a6b64e6a9
3 changed files with 38 additions and 19 deletions
|
@ -13,24 +13,25 @@
|
|||
%li{:class => tab_class(:network)}
|
||||
= link_to "Network", graph_project_path(@project)
|
||||
|
||||
- if @project.issues_enabled
|
||||
%li{:class => tab_class(:issues)}
|
||||
= link_to project_issues_filter_path(@project) do
|
||||
Issues
|
||||
%span.count= @project.issues.opened.count
|
||||
- if @project.issues_enabled
|
||||
%li{:class => tab_class(:issues)}
|
||||
= link_to project_issues_filter_path(@project) do
|
||||
Issues
|
||||
%span.count= @project.issues.opened.count
|
||||
|
||||
- if @project.repo_exists?
|
||||
- if @project.merge_requests_enabled
|
||||
%li{:class => tab_class(:merge_requests)}
|
||||
= link_to project_merge_requests_path(@project) do
|
||||
Merge Requests
|
||||
%span.count= @project.merge_requests.opened.count
|
||||
|
||||
- if @project.wall_enabled
|
||||
%li{:class => tab_class(:wall)}
|
||||
= link_to wall_project_path(@project) do
|
||||
Wall
|
||||
- if @project.wall_enabled
|
||||
%li{:class => tab_class(:wall)}
|
||||
= link_to wall_project_path(@project) do
|
||||
Wall
|
||||
|
||||
- if @project.wiki_enabled
|
||||
%li{:class => tab_class(:wiki)}
|
||||
= link_to project_wiki_path(@project, :index) do
|
||||
Wiki
|
||||
- if @project.wiki_enabled
|
||||
%li{:class => tab_class(:wiki)}
|
||||
= link_to project_wiki_path(@project, :index) do
|
||||
Wiki
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
= render "commits/diffs", :diffs => @diffs
|
||||
- if @diffs.empty?
|
||||
%p.cgray Nothing to merge
|
||||
- if @merge_request.valid_diffs?
|
||||
= render "commits/diffs", :diffs => @diffs
|
||||
- elsif @merge_request.broken_diffs?
|
||||
%h4.nothing_here_message
|
||||
Can't load diff.
|
||||
You can #{link_to "download MR patch", raw_project_merge_request_path(@project, @merge_request), :class => "vlink"} instead.
|
||||
- else
|
||||
%h4.nothing_here_message Nothing to merge
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue