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

22 lines
696 B
Text
Raw Normal View History

2015-09-25 12:07:36 +05:30
%li.snippet-row
2016-06-02 11:05:42 +05:30
= image_tag avatar_icon(snippet.author_email), class: "avatar s40 hidden-xs", alt: ''
.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
2016-06-02 11:05:42 +05:30
= icon('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
= snippet.author_name
authored #{time_ago_with_tooltip(snippet.created_at)}