gitlab-org--gitlab-foss/app/views/search/results/_snippet_title.html.haml
Tao Wang 527ded1ee1
[i18n] Externalize strings from 'app/views/search'
Signed-off-by: Tao Wang <twang2218@gmail.com>
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-01-15 16:56:24 +01:00

23 lines
829 B
Text

.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.badge.badge-gray
%i.fa.fa-lock
= _("private")
%span.cgray.monospace.tiny.float-right.term
= snippet_title.file_name
%small.float-right.cgray
- if snippet_title.project_id?
= link_to snippet_title.project.full_name, project_path(snippet_title.project)
.snippet-info
= snippet_title.to_reference
%span
by
= link_to user_snippets_path(snippet_title.author) do
= image_tag avatar_icon_for_user(snippet_title.author), class: "avatar avatar-inline s16", alt: ''
= snippet_title.author_name
%span.light= time_ago_with_tooltip(snippet_title.created_at)