Sha256: b57b4982ad969ff2c72e1df9548e9644ac581ecaaaabee0df54a03dfbf4df3b1

Contents?: true

Size: 1.11 KB

Versions: 36

Compression:

Stored size: 1.11 KB

Contents

.grid.grid-cols-4.gap-4
  .col-span-4
    h1 Avatars
    p Allow you to display avatars

  .col-span-4
    = sts.card(:simplest_case, title: t('.simplest_case')) do |card|
      p
        | Avatars will by default show the first two capitalized letters of a name.
      pre
        | = sts.avatar name: 'User Name'

      p = sts.avatar name: 'User Name'
      pre
        | = sts.avatar name: 'User Test Name'

      p = sts.avatar name: 'User Test Name'


  .col-span-4
    = sts.card(:gravatar, title: t('.gravatar')) do |card|
      p
        | Avatars will use gravatar when you provide an email
      p
        pre
          | = sts.avatar name: 'User Name', email: 'test1@example.com'

      p = sts.avatar name: 'User Name', email: 'test1@example.com'

  .col-span-4
    = sts.card(:active_storage, title: t('.active_storage')) do |card|
      p
        | Avatars can also use active-storage attachments.
        | In the below sample the user object has one-attached avatar
      p
        pre
          | = sts.avatar name: 'User Name', photo: user.avatar

      p = sts.avatar name: 'User Name', email: 'test1@example.com'

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
satis-2.1.43 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.42 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.41 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.40 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.39 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.38 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.37 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.36 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.35 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.33 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.31 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.30 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.29 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.28 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.27 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.26 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.24 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.23 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.22 app/views/satis/documentation/avatars/index.html.slim
satis-2.1.21 app/views/satis/documentation/avatars/index.html.slim