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