2016-05-18 09:11:06 -04:00
|
|
|
.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)
|
2015-12-16 10:13:22 -05:00
|
|
|
= visibility_level_icon(@snippet.visibility_level, fw: false)
|
|
|
|
%span.creator
|
2017-09-06 07:19:03 -04:00
|
|
|
Authored
|
2015-12-16 10:13:22 -05:00
|
|
|
= time_ago_with_tooltip(@snippet.created_at, placement: 'bottom', html_class: 'snippet_updated_ago')
|
2016-09-05 13:57:00 -04:00
|
|
|
by #{link_to_member(@project, @snippet.author, size: 24, author_class: "author item-title", avatar_class: "hidden-xs")}
|
2015-10-14 08:12:08 -04:00
|
|
|
|
2016-05-18 09:11:06 -04:00
|
|
|
.snippet-actions
|
2015-12-16 10:13:22 -05:00
|
|
|
- if @snippet.project_id?
|
|
|
|
= render "projects/snippets/actions"
|
|
|
|
- else
|
|
|
|
= render "snippets/actions"
|
2015-12-02 08:50:12 -05:00
|
|
|
|
2017-06-23 06:45:08 -04:00
|
|
|
.snippet-header.limited-header-width
|
2016-12-09 12:48:53 -05:00
|
|
|
%h2.snippet-title.prepend-top-0.append-bottom-0
|
|
|
|
= markdown_field(@snippet, :title)
|
|
|
|
|
|
|
|
- if @snippet.updated_at != @snippet.created_at
|
2017-05-03 07:46:10 -04:00
|
|
|
= edited_time_ago_with_tooltip(@snippet, placement: 'bottom', html_class: 'snippet-edited-ago', exclude_author: true)
|
2017-05-29 03:54:35 -04:00
|
|
|
- if @snippet.description.present?
|
|
|
|
.description
|
|
|
|
.wiki
|
|
|
|
= markdown_field(@snippet, :description)
|
|
|
|
%textarea.hidden.js-task-list-field
|
|
|
|
= @snippet.description
|