Fix 404 errors on Merge Request -> new
This commit is contained in:
parent
b6fc031031
commit
d9c20cf5a6
3 changed files with 7 additions and 3 deletions
|
@ -65,4 +65,9 @@ module CommitsHelper
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def commit_to_html commit
|
||||||
|
if commit.model
|
||||||
|
escape_javascript(render 'commits/commit', commit: commit)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
:plain
|
:plain
|
||||||
$(".mr_source_commit").html("#{escape_javascript(render 'commits/commit', commit: @commit)}");
|
$(".mr_source_commit").html("#{commit_to_html(@commit)}");
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
:plain
|
:plain
|
||||||
$(".mr_target_commit").html("#{escape_javascript(render 'commits/commit', commit: @commit)}");
|
$(".mr_target_commit").html("#{commit_to_html(@commit)}");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue