Use `Snippet#to_reference` directly
This commit is contained in:
parent
ef4fedc18f
commit
538b2d687e
|
@ -4,7 +4,7 @@
|
||||||
= visibility_level_label(@snippet.visibility_level)
|
= visibility_level_label(@snippet.visibility_level)
|
||||||
= visibility_level_icon(@snippet.visibility_level, fw: false)
|
= visibility_level_icon(@snippet.visibility_level, fw: false)
|
||||||
%strong.item-title
|
%strong.item-title
|
||||||
Snippet $#{@snippet.id}
|
Snippet #{@snippet.to_reference}
|
||||||
%span.creator
|
%span.creator
|
||||||
created by #{link_to_member(@project, @snippet.author, size: 24, author_class: "author item-title")}
|
created by #{link_to_member(@project, @snippet.author, size: 24, author_class: "author item-title")}
|
||||||
= time_ago_with_tooltip(@snippet.created_at, placement: 'bottom', html_class: 'snippet_updated_ago')
|
= time_ago_with_tooltip(@snippet.created_at, placement: 'bottom', html_class: 'snippet_updated_ago')
|
||||||
|
|
Loading…
Reference in New Issue