2014-08-29 15:22:45 -04:00
|
|
|
.search-result-row
|
|
|
|
%h4.snippet-title.term
|
|
|
|
= link_to reliable_snippet_path(snippet_title) do
|
|
|
|
= truncate(snippet_title.title, length: 60)
|
|
|
|
- if snippet_title.private?
|
|
|
|
%span.label.label-gray
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-lock
|
2014-08-29 15:22:45 -04:00
|
|
|
private
|
|
|
|
%span.cgray.monospace.tiny.pull-right.term
|
|
|
|
= snippet_title.file_name
|
|
|
|
|
|
|
|
%small.pull-right.cgray
|
|
|
|
- if snippet_title.project_id?
|
2015-02-19 23:07:54 -05:00
|
|
|
= link_to snippet_title.project.name_with_namespace, namespace_project_path(snippet_title.project.namespace, snippet_title.project)
|
2014-08-29 15:22:45 -04:00
|
|
|
|
|
|
|
.snippet-info
|
|
|
|
= "##{snippet_title.id}"
|
|
|
|
%span
|
|
|
|
by
|
|
|
|
= link_to user_snippets_path(snippet_title.author) do
|
|
|
|
= image_tag avatar_icon(snippet_title.author_email), class: "avatar avatar-inline s16", alt: ''
|
|
|
|
= snippet_title.author_name
|
|
|
|
%span.light #{time_ago_with_tooltip(snippet_title.created_at)}
|