Sha256: 249aeb248c68deba93908e4fa18ddab318a05f093d12d6d185ced792f1e81348
Contents?: true
Size: 663 Bytes
Versions: 33
Compression:
Stored size: 663 Bytes
Contents
<!-- Renders a gravatar (see [gravatar.com](http://gravatar.com)) image in side a link to `this`. Requires `this` to have an `email_address` field. Normally called with a user record in context. ### Attributes - `size` - Size in pixels of the image. Defaults to 80. - `rating` - The rating allowed. Defaults to 'g'. See [gravatar.com](http://gravatar.com) for information on ratings. --> <def tag="gravatar" attrs="size, rating"> <% size ||= 80; rating ||= 'g'; digest = Digest::MD5.hexdigest(this.email_address) -%> <a class="gravatar"><img class="gravatar" src="http://www.gravatar.com/avatar/#{digest}?s=#{size}&r=#{rating}" merge-attrs/></a> </def>
Version data entries
33 entries across 33 versions & 1 rubygems