debian-mirror-gitlab/app/views/snippets/_snippet.html.haml

24 lines
765 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
%li
%h4.snippet-title
= link_to reliable_snippet_path(snippet) do
= truncate(snippet.title, length: 60)
- if snippet.private?
%span.label.label-gray
2015-04-26 12:48:37 +05:30
%i.fa.fa-lock
2014-09-02 18:07:02 +05:30
private
%span.cgray.monospace.tiny.pull-right
= snippet.file_name
%small.pull-right.cgray
- if snippet.project_id?
2015-04-26 12:48:37 +05:30
= link_to snippet.project.name_with_namespace, namespace_project_path(snippet.project.namespace, snippet.project)
2014-09-02 18:07:02 +05:30
.snippet-info
= "##{snippet.id}"
%span
by
= link_to user_snippets_path(snippet.author) do
= image_tag avatar_icon(snippet.author_email), class: "avatar avatar-inline s16", alt: ''
= snippet.author_name
%span.light #{time_ago_with_tooltip(snippet.created_at)}