Sha256: 38d110e90234445c219e8b92d8969fb5aecac92cfb7d722ec4c4fa235f3fe5a0

Contents?: true

Size: 882 Bytes

Versions: 1

Compression:

Stored size: 882 Bytes

Contents

[ SectionBlock[text: Text[mrkdwn: [
    "You have a new request:",
    Bold[Link['google.com', 'Fred Enriquez - Time Off request']]
  ]]],
  SectionBlock[
    text: Text[mrkdwn: [
      Bold['Type:'], 'Paid time off',
      Bold['When:'], 'Aug 10-Aug 13',
      "#{Bold['Hours:']} 16.0 (2 days)",
      "#{Bold['Remaining balance:']} 32.0 hours (4 days)",
      "#{Bold['Comments:']} \"Family in town, going camping!\""
    ]],
    accessory: ImageElement[
      image_url: "https://api.slack.com/img/blocks/bkb_template_images/approvalsNewDevice.png",
      alt_text: "computer thumbnail"
    ]
  ],
  ActionsBlock[elements: [
    ButtonElement[
      text: Text[plain_text: 'Approve', emoji: true],
      style: 'primary', value: 'click_me_123'
    ],
    ButtonElement[
      text: Text[plain_text: 'Deny', emoji: true],
      style: 'danger', value: 'click_me_123'
    ]
  ]]
]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-block-kit-0.1.0 examples/slack_template_02.rb