Commit a9cd3bfa authored by Vinnie Okada's avatar Vinnie Okada

Fix external commit links

Display the '@' character for links to commits in other projects.
parent bcf88c85
...@@ -245,6 +245,7 @@ module Gitlab ...@@ -245,6 +245,7 @@ module Gitlab
title: commit.link_title, title: commit.link_title,
class: "gfm gfm-commit #{html_options[:class]}" class: "gfm gfm-commit #{html_options[:class]}"
) )
prefix_text = "#{prefix_text}@" if prefix_text
link_to( link_to(
"#{prefix_text}#{identifier}", "#{prefix_text}#{identifier}",
project_commit_url(project, commit), project_commit_url(project, commit),
......
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