Sha256: d48ddc923127afb4189d507e6020c09e44734d0cd6c39588564a6f392936cb1c

Contents?: true

Size: 500 Bytes

Versions: 104

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

104 entries across 104 versions & 1 rubygems

Version Path
avo-3.14.3 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.14.2 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.14.1 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.14.0 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.13.7 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.13.6 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.13.5 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.13.4 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.13.3 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.13.2 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.13.1 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.13.0 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.12.0 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.11.10 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.11.9 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.11.8 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.11.7 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.11.6 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.11.5 app/components/avo/fields/common/gravatar_viewer_component.html.erb
avo-3.11.4 app/components/avo/fields/common/gravatar_viewer_component.html.erb