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 ...@@ -27,10 +27,12 @@ module CommitsHelper
end end
def commit_to_html(commit, ref, project) def commit_to_html(commit, ref, project)
render 'projects/commits/commit.html', render partial: 'projects/commits/commit', formats: :html,
commit: commit, locals: {
ref: ref, commit: commit,
project: project ref: ref,
project: project
}
end end
# Breadcrumb links for a Project and, if applicable, a tree path # 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