Commit e5e3d9fd authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'issue_342492_commits_helper' into 'master'

Pass formats explicitly when rendering html

See merge request gitlab-org/gitlab!75772
parents 9ce8a4c5 29f03fb2
......@@ -27,10 +27,12 @@ module CommitsHelper
end
def commit_to_html(commit, ref, project)
render 'projects/commits/commit.html',
commit: commit,
ref: ref,
project: project
render partial: 'projects/commits/commit', formats: :html,
locals: {
commit: commit,
ref: ref,
project: project
}
end
# Breadcrumb links for a Project and, if applicable, a tree path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment