gitlab-org--gitlab-foss/app/views/snippets/_snippet.html.haml
Izaak Alpert c1b05e7b86 Gravatar image fixes when gravatar unavailable
-Alt text to image was set to hash, which would make the page display hashes if the image/gravatar  wasn't available, set the alt text to '', and made the main tool bar image follow the same or similar constraints as the other images (.avatar, .s26)

Conflicts:
	app/assets/stylesheets/themes/ui_bb.scss
	app/views/snippets/_snippet.html.haml

Change-Id: I42e1e86f535486fd2556d4b3e4591f3676eea033
2013-06-26 08:53:03 -04:00

30 lines
734 B
Text

%li
.snippet-title
- if snippet.private?
= private_icon
- else
= public_icon
= link_to reliable_snippet_path(snippet) do
%h5.inline
= truncate(snippet.title, length: 60)
%span.cgray
= snippet.file_name
%small.pull-right.cgray
- if snippet.project_id?
= link_to snippet.project.name_with_namespace, project_path(snippet.project)
%span
\|
Expires:
- if snippet.expires_at
= snippet.expires_at.to_date.to_s(:short)
- else
Never
.snippet-info.prepend-left-20
= "##{snippet.id}"
%span.light
by
= image_tag gravatar_icon(snippet.author_email), class: "avatar avatar-inline s16", alt: ''
= snippet.author_name