Sha256: d48ddc923127afb4189d507e6020c09e44734d0cd6c39588564a6f392936cb1c

Contents?: true

Size: 500 Bytes

Versions: 106

Compression:

Stored size: 500 Bytes

Contents

<%
  options = {
    default: '',
    size: 340,
  }
  options[:default] = @default if @default.present?
  options[:size] = @size if @size.present?
  query = options.map { |key, value| "#{key}=#{value}" }.join('&')
  url = URI::HTTPS.build(host: "www.gravatar.com", path: "/avatar/#{@md5}", query: query)
  classes = @rounded ? 'rounded-full' : ''
%>
<%= link_to_if @link_to_record.present?, image_tag(url.to_s, class: classes, width: options[:size], height: options[:size]), @link, title: @title %>

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
avo-3.9.0 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.8.1 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.8.0 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.6.4 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.6.3 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.6.2 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.6.1 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.6.0 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.5.8 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.5.7 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.5.6 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.5.6.beta1 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.5.5 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.5.4 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.5.3 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.5.2 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.5.1 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.5.0 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.4.4 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.4.3 app/components/avo/fields/common/gravatar_viewer_component.html.erb