debian-mirror-gitlab/app/views/search/results/_snippet_title.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
731 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
.search-result-row
2020-05-24 23:13:21 +05:30
%h4
2020-01-01 13:55:28 +05:30
= link_to gitlab_snippet_path(snippet_title) do
2015-04-26 12:48:37 +05:30
= truncate(snippet_title.title, length: 60)
2019-12-26 22:10:19 +05:30
= snippet_badge(snippet_title)
2018-11-08 19:23:39 +05:30
%span.cgray.monospace.tiny.float-right.term
2015-04-26 12:48:37 +05:30
= snippet_title.file_name
2018-11-08 19:23:39 +05:30
%small.float-right.cgray
2015-04-26 12:48:37 +05:30
- if snippet_title.project_id?
2018-03-27 19:54:05 +05:30
= link_to snippet_title.project.full_name, project_path(snippet_title.project)
2015-04-26 12:48:37 +05:30
.snippet-info
2017-08-17 22:00:37 +05:30
= snippet_title.to_reference
2015-04-26 12:48:37 +05:30
%span
by
= link_to user_snippets_path(snippet_title.author) do
2018-03-27 19:54:05 +05:30
= image_tag avatar_icon_for_user(snippet_title.author), class: "avatar avatar-inline s16", alt: ''
2015-04-26 12:48:37 +05:30
= snippet_title.author_name
2017-08-17 22:00:37 +05:30
%span.light= time_ago_with_tooltip(snippet_title.created_at)