Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an intermediate partial to differ loading _changes
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
src/api/app/views/webui/request/_changes_content.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- if diff_to_superseded | ||
You're reviewing changes from | ||
= link_to("superseded request ##{diff_to_superseded.number}.", request_show_path(number: diff_to_superseded)) | ||
This only represents a small part of changes which are included in this request. | ||
= surround('(', ')') do | ||
= link_to('See the full changes for request', request_changes_path(number: bs_request.number)) | ||
- else | ||
- bs_request.superseding.each do |supersed| | ||
See the changes from | ||
= link_to "superseded request ##{supersed.number}", request_changes_path(bs_request, diff_to_superseded: supersed) | ||
|
||
= render SourcediffComponent.new(bs_request: bs_request, action: action) |