Commit 4ca52208 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Move project and profile links to a Base Presenter

parent b90b96b3
...@@ -73,6 +73,14 @@ module Gitlab ...@@ -73,6 +73,14 @@ module Gitlab
] ]
) )
end end
def project_link
"[#{project.full_name}](#{project.web_url})"
end
def author_profile_link
"[#{author.to_reference}](#{url_for(author)})"
end
end end
end end
end end
......
...@@ -42,14 +42,6 @@ module Gitlab ...@@ -42,14 +42,6 @@ module Gitlab
] ]
end end
def project_link
"[#{project.full_name}](#{project.web_url})"
end
def author_profile_link
"[#{author.to_reference}](#{url_for(author)})"
end
private private
attr_reader :resource attr_reader :resource
......
...@@ -18,18 +18,10 @@ module Gitlab ...@@ -18,18 +18,10 @@ module Gitlab
issue.project issue.project
end end
def project_link
"[#{project.full_name}](#{project.web_url})"
end
def author def author
resource.author resource.author
end end
def author_profile_link
"[#{author.to_reference}](#{url_for(author)})"
end
def fields def fields
[ [
{ {
......
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