debian-mirror-gitlab/app/views/shared/snippets/_header.html.haml

31 lines
1.2 KiB
Text
Raw Normal View History

.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-23 02:04:40 +05:30
= visibility_level_icon(@snippet.visibility_level, fw: false)
%strong.item-title
Snippet #{@snippet.to_reference}
2015-12-23 02:04:40 +05:30
%span.creator
2016-09-29 09:46:39 +05:30
authored
2015-12-23 02:04:40 +05:30
= time_ago_with_tooltip(@snippet.created_at, placement: 'bottom', html_class: 'snippet_updated_ago')
2016-09-29 09:46:39 +05:30
by #{link_to_member(@project, @snippet.author, size: 24, author_class: "author item-title", avatar_class: "hidden-xs")}
2015-11-26 14:37:03 +05:30
.snippet-actions
2015-12-23 02:04:40 +05:30
- if @snippet.project_id?
= render "projects/snippets/actions"
- else
= render "snippets/actions"
2017-09-10 17:25:29 +05:30
.snippet-header.limited-header-width
2017-08-17 22:00:37 +05:30
%h2.snippet-title.prepend-top-0.append-bottom-0
= markdown_field(@snippet, :title)
- if @snippet.updated_at != @snippet.created_at
= edited_time_ago_with_tooltip(@snippet, placement: 'bottom', html_class: 'snippet-edited-ago', exclude_author: true)
2017-09-10 17:25:29 +05:30
- if @snippet.description.present?
.description
.wiki
= markdown_field(@snippet, :description)
%textarea.hidden.js-task-list-field
= @snippet.description