BigW Consortium Gitlab

_snippet.html.haml 696 Bytes
Newer Older
1
%li.snippet-row
2 3
  = image_tag avatar_icon(snippet.author_email), class: "avatar s40 hidden-xs", alt: ''

4 5
  .title
    = link_to reliable_snippet_path(snippet) do
6 7
      = truncate(snippet.title, length: 60)
      - if snippet.private?
8
        %span.label.label-gray
9
          = icon('lock')
10
          private
11
    %span.monospace.pull-right
Dmitriy Zaporozhets committed
12 13 14
      = snippet.file_name

  %small.pull-right.cgray
15
    - if snippet.project_id?
16
      = link_to snippet.project.name_with_namespace, namespace_project_path(snippet.project.namespace, snippet.project)
Dmitriy Zaporozhets committed
17

18
  .snippet-info
19 20
    = link_to user_snippets_path(snippet.author) do
      = snippet.author_name
21
    authored #{time_ago_with_tooltip(snippet.created_at)}