BigW Consortium Gitlab

_header.html.haml 1.06 KB
Newer Older
Phil Hughes committed
1 2 3 4
.detail-page-header.clearfix
  .snippet-box.has-tooltip.inline.append-right-5{ title: snippet_visibility_level_description(@snippet.visibility_level, @snippet), data: { container: "body" } }
    %span.sr-only
      = visibility_level_label(@snippet.visibility_level)
5
    = visibility_level_icon(@snippet.visibility_level, fw: false)
Phil Hughes committed
6
  %strong.item-title
7
    Snippet #{@snippet.to_reference}
8
  %span.creator
9
    authored
10 11 12 13 14
    = time_ago_with_tooltip(@snippet.created_at, placement: 'bottom', html_class: 'snippet_updated_ago')
    - if @snippet.updated_at != @snippet.created_at
      %span
        = icon('edit', title: 'edited')
        = time_ago_with_tooltip(@snippet.updated_at, placement: 'bottom', html_class: 'snippet_edited_ago')
15
    by #{link_to_member(@project, @snippet.author, size: 24, author_class: "author item-title", avatar_class: "hidden-xs")}
16

Phil Hughes committed
17
  .snippet-actions
18 19 20 21
    - if @snippet.project_id?
      = render "projects/snippets/actions"
    - else
      = render "snippets/actions"
22

23
%h2.snippet-title.prepend-top-0.append-bottom-0
24
  = markdown_field(@snippet, :title)