BigW Consortium Gitlab

_snippet_title.html.haml 864 Bytes
Newer Older
1 2 3 4 5 6
.search-result-row
  %h4.snippet-title.term
    = link_to reliable_snippet_path(snippet_title) do
      = truncate(snippet_title.title, length: 60)
      - if snippet_title.private?
        %span.label.label-gray
7
          %i.fa.fa-lock
8 9 10 11 12 13
          private
    %span.cgray.monospace.tiny.pull-right.term
      = snippet_title.file_name

  %small.pull-right.cgray
    - if snippet_title.project_id?
14
      = link_to snippet_title.project.name_with_namespace, namespace_project_path(snippet_title.project.namespace, snippet_title.project)
15 16

  .snippet-info
17
    = snippet_title.to_reference
18 19 20
    %span
      by
      = link_to user_snippets_path(snippet_title.author) do
21
        = image_tag avatar_icon(snippet_title.author), class: "avatar avatar-inline s16", alt: ''
22
        = snippet_title.author_name
23
      %span.light= time_ago_with_tooltip(snippet_title.created_at)