gitlab-org--gitlab-foss/app/views/snippets/_snippet.html.haml

24 lines
765 B
Text
Raw Normal View History

2013-06-05 15:25:27 -04:00
%li
%h4.snippet-title
2013-06-05 15:25:27 -04:00
= link_to reliable_snippet_path(snippet) do
= truncate(snippet.title, length: 60)
- if snippet.private?
%span.label.label-gray
2014-10-01 18:21:29 -04:00
%i.fa.fa-lock
private
%span.cgray.monospace.tiny.pull-right
2013-06-05 15:25:27 -04:00
= snippet.file_name
%small.pull-right.cgray
- if snippet.project_id?
= link_to snippet.project.name_with_namespace, namespace_project_path(snippet.project.namespace, snippet.project)
2013-06-05 15:25:27 -04:00
.snippet-info
2013-06-05 15:25:27 -04:00
= "##{snippet.id}"
%span
2013-06-05 15:25:27 -04:00
by
2013-07-18 06:33:43 -04:00
= link_to user_snippets_path(snippet.author) do
2013-10-06 14:13:56 -04:00
= image_tag avatar_icon(snippet.author_email), class: "avatar avatar-inline s16", alt: ''
2013-07-18 06:33:43 -04:00
= snippet.author_name
%span.light #{time_ago_with_tooltip(snippet.created_at)}