2013-06-05 15:25:27 -04:00
|
|
|
%li
|
2013-07-18 06:08:48 -04:00
|
|
|
%h4.snippet-title
|
2013-06-05 15:25:27 -04:00
|
|
|
= link_to reliable_snippet_path(snippet) do
|
2013-07-18 06:08:48 -04:00
|
|
|
= truncate(snippet.title, length: 60)
|
|
|
|
- if snippet.private?
|
2013-11-18 14:34:07 -05:00
|
|
|
%span.label.label-gray
|
2013-07-18 06:08:48 -04:00
|
|
|
%i.icon-lock
|
|
|
|
private
|
|
|
|
%span.cgray.monospace.tiny.pull-right
|
2013-06-05 15:25:27 -04:00
|
|
|
= snippet.file_name
|
|
|
|
|
|
|
|
%small.pull-right.cgray
|
2013-03-24 17:16:52 -04:00
|
|
|
- if snippet.project_id?
|
2013-06-05 15:25:27 -04:00
|
|
|
= link_to snippet.project.name_with_namespace, project_path(snippet.project)
|
|
|
|
|
2013-07-18 06:08:48 -04:00
|
|
|
.snippet-info
|
2013-06-05 15:25:27 -04:00
|
|
|
= "##{snippet.id}"
|
2013-07-18 06:08:48 -04:00
|
|
|
%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
|
2013-12-30 07:49:22 -05:00
|
|
|
%span.light #{time_ago_with_tooltip(snippet.created_at)}
|