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

22 lines
697 B
Text
Raw Normal View History

2015-09-25 12:07:36 +05:30
%li.snippet-row
.snippet-title
2014-09-02 18:07:02 +05:30
= 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
2015-09-25 12:07:36 +05:30
%span.monospace.pull-right
2014-09-02 18:07:02 +05:30
= 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
2015-09-25 12:07:36 +05:30
= link_to user_snippets_path(snippet.author) do
= image_tag avatar_icon(snippet.author_email), class: "avatar s24", alt: ''
= snippet.author_name
authored #{time_ago_with_tooltip(snippet.created_at)}