fix some glitches in gravatar image url generation
always use proper size value do not show alt text when avatar image not loaded
This commit is contained in:
parent
552c2d665b
commit
2c37fa381e
2 changed files with 4 additions and 2 deletions
|
@ -76,7 +76,7 @@ class CommitDecorator < ApplicationDecorator
|
|||
source_name = send "#{options[:source]}_name".to_sym
|
||||
source_email = send "#{options[:source]}_email".to_sym
|
||||
text = if options[:avatar]
|
||||
avatar = h.image_tag h.gravatar_icon(source_email, options[:size]), class: "avatar #{"s#{options[:size]}" if options[:size]}", width: options[:size]
|
||||
avatar = h.image_tag h.gravatar_icon(source_email, options[:size]), class: "avatar #{"s#{options[:size]}" if options[:size]}", width: options[:size], alt: ""
|
||||
%Q{#{avatar} <span class="commit-#{options[:source]}-name">#{source_name}</span>}
|
||||
else
|
||||
source_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue