2015-12-23 02:04:40 +05:30
|
|
|
.detail-page-header
|
2016-06-02 11:05:42 +05:30
|
|
|
.snippet-box.has-tooltip{class: visibility_level_color(@snippet.visibility_level), title: snippet_visibility_level_description(@snippet.visibility_level, @snippet), data: { container: 'body' }}
|
2015-12-23 02:04:40 +05:30
|
|
|
= visibility_level_icon(@snippet.visibility_level, fw: false)
|
|
|
|
= visibility_level_label(@snippet.visibility_level)
|
|
|
|
%span.identifier
|
|
|
|
Snippet ##{@snippet.id}
|
|
|
|
%span.creator
|
|
|
|
· created by #{link_to_member(@project, @snippet.author, size: 24)}
|
|
|
|
·
|
|
|
|
= 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')
|
2015-11-26 14:37:03 +05:30
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
.pull-right
|
|
|
|
- if @snippet.project_id?
|
|
|
|
= render "projects/snippets/actions"
|
|
|
|
- else
|
|
|
|
= render "snippets/actions"
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.detail-page-description.row-content-block.second-block
|
2015-12-23 02:04:40 +05:30
|
|
|
%h2.title
|
|
|
|
= markdown escape_once(@snippet.title), pipeline: :single_line
|