Commit eaf92daa authored by Mike Greiling's avatar Mike Greiling

move snippet edited timeago under the snippet title

parent 6dc4007a
......@@ -34,11 +34,17 @@
padding-bottom: $gl-padding;
}
.snippet-header {
padding: $gl-padding 0;
}
.snippet-title {
font-size: 24px;
font-weight: 600;
padding: $gl-padding;
padding-left: 0;
}
.snippet-edited-ago {
color: $gray-darkest;
}
.snippet-actions {
......
......@@ -8,10 +8,6 @@
%span.creator
authored
= 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')
by #{link_to_member(@project, @snippet.author, size: 24, author_class: "author item-title", avatar_class: "hidden-xs")}
.snippet-actions
......@@ -20,5 +16,9 @@
- else
= render "snippets/actions"
%h2.snippet-title.prepend-top-0.append-bottom-0
.snippet-header
%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')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment