From: Marius Balteanu Date: Sun, 2 Oct 2022 08:53:09 +0000 (+0000) Subject: Fix show diff of a javascript file in repository module is displayed without layout... X-Git-Tag: 5.1.0~392 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc54c7a72129127d410b7f69b683e88ade2103e0;p=redmine.git Fix show diff of a javascript file in repository module is displayed without layout (#37626). Patch by Trang Tran Thi Quynh. git-svn-id: https://svn.redmine.org/redmine/trunk@21883 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index ff1230c88..56be9d526 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -286,7 +286,7 @@ class RepositoriesController < ApplicationController @changeset = @repository.find_changeset_by_name(@rev) @changeset_to = @rev_to ? @repository.find_changeset_by_name(@rev_to) : nil @diff_format_revisions = @repository.diff_format_revisions(@changeset, @changeset_to) - render :diff, :formats => :html, :layout => 'base' + render :diff, :formats => :html, :layout => 'base.html.erb' end end