Commit 68c1e3a1 authored by Mike Greiling's avatar Mike Greiling

update snippets list design

parent 1ea47847
.snippet-row {
.title {
margin-bottom: 2px;
}
.snippet-filename {
padding: 0 2px;
}
}
.snippet-form-holder .file-holder .file-title { .snippet-form-holder .file-holder .file-title {
padding: 2px; padding: 2px;
} }
......
...@@ -4,14 +4,11 @@ ...@@ -4,14 +4,11 @@
.title .title
= link_to reliable_snippet_path(snippet) do = link_to reliable_snippet_path(snippet) do
= snippet.title = snippet.title
- if snippet.private? - if snippet.file_name
%span.label.label-gray.hidden-xs %span.snippet-filename.monospace.hidden-xs
= icon('lock') = snippet.file_name
private
%span.monospace.pull-right.hidden-xs
= snippet.file_name
%ul.controls.visible-xs %ul.controls
%li %li
- note_count = snippet.notes.user.count - note_count = snippet.notes.user.count
= link_to reliable_snippet_path(snippet, anchor: 'notes'), class: ('no-comments' if note_count.zero?) do = link_to reliable_snippet_path(snippet, anchor: 'notes'), class: ('no-comments' if note_count.zero?) do
...@@ -22,11 +19,11 @@ ...@@ -22,11 +19,11 @@
= visibility_level_label(snippet.visibility_level) = visibility_level_label(snippet.visibility_level)
= visibility_level_icon(snippet.visibility_level, fw: false) = visibility_level_icon(snippet.visibility_level, fw: false)
%small.pull-right.cgray.hidden-xs .snippet-info
- if snippet.project_id? #{snippet.to_reference} ·
= link_to snippet.project.name_with_namespace, namespace_project_path(snippet.project.namespace, snippet.project) authored #{time_ago_with_tooltip(snippet.created_at, placement: 'bottom')} by
.snippet-info.hidden-xs
= link_to user_snippets_path(snippet.author) do = link_to user_snippets_path(snippet.author) do
= snippet.author_name = snippet.author_name
authored #{time_ago_with_tooltip(snippet.created_at)}
.pull-right.snippet-updated-at
%span updated #{time_ago_with_tooltip(snippet.updated_at, placement: 'bottom', html_class: 'snippet_update_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