56461e0c16
Rearranged datetime created line Added `avatar_class` option to `link_to_member` so it can be hidden Made snippet title font heavier Added file title bar Hidden unneeded info from xs screens Added visibility icon Reveal file-actions on xs screens Added comments icon to snippets list items Refactored no-comments declaration into framework stylesheet Final touch ups Fixed snippets_spec
32 lines
1.1 KiB
Text
32 lines
1.1 KiB
Text
%li.snippet-row
|
|
= image_tag avatar_icon(snippet.author_email), class: "avatar s40 hidden-xs", alt: ''
|
|
|
|
.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
|
|
= snippet.file_name
|
|
|
|
%ul.controls.visible-xs
|
|
%li
|
|
- note_count = snippet.notes.user.count
|
|
= link_to reliable_snippet_path(snippet, anchor: 'notes'), class: ('no-comments' if note_count.zero?) do
|
|
= icon('comments')
|
|
= note_count
|
|
%li
|
|
%span.sr-only
|
|
= 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
|
|
= link_to user_snippets_path(snippet.author) do
|
|
= snippet.author_name
|
|
authored #{time_ago_with_tooltip(snippet.created_at)}
|