2015-08-26 18:00:06 -04:00
|
|
|
%li.snippet-row
|
2016-02-25 13:51:05 -05:00
|
|
|
= image_tag avatar_icon(snippet.author_email), class: "avatar s40 hidden-xs", alt: ''
|
|
|
|
|
2015-08-26 18:00:06 -04:00
|
|
|
.snippet-title
|
2016-02-25 13:51:05 -05:00
|
|
|
= link_to reliable_snippet_path(snippet), class: 'title' 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
|
2016-02-25 13:51:05 -05:00
|
|
|
= icon('lock')
|
2013-07-18 06:08:48 -04:00
|
|
|
private
|
2015-08-26 18:00:06 -04:00
|
|
|
%span.monospace.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?
|
2015-02-19 23:07:54 -05:00
|
|
|
= link_to snippet.project.name_with_namespace, namespace_project_path(snippet.project.namespace, snippet.project)
|
2013-06-05 15:25:27 -04:00
|
|
|
|
2013-07-18 06:08:48 -04:00
|
|
|
.snippet-info
|
2015-08-26 18:00:06 -04:00
|
|
|
= link_to user_snippets_path(snippet.author) do
|
|
|
|
= snippet.author_name
|
2015-10-14 08:12:08 -04:00
|
|
|
authored #{time_ago_with_tooltip(snippet.created_at)}
|