UnavailableContribution

Organism

Placeholder for a contribution that cannot be shown, for admins and editors (end users see nothing). Nine reasons (disabled, unentitled, blocked, retired, banned, quarantined, failed, missing, no-access), each with a default icon, tone and short text; four sizes (inline, card, tab, node); optional title, detail and action. Texts are overridable for i18n.

Card (dashboard widget, panel)

Preview

Disabled

The module that provides this is turned off.

Not in plan

Your current plan does not include this.

Quarantined

Paused automatically after repeated errors.

Failed to load

Something went wrong while showing this.

Code
<%- include('modules/ui/UnavailableContribution', {
  reason: 'disabled',
  action: { label: 'Enable', onClick: 'enableModule()' }
}) %>
<%- include('modules/ui/UnavailableContribution', {
  reason: 'unentitled',
  action: { label: 'Upgrade', href: '/billing' }
}) %>

Inline (top bar, menu, every reason)

Preview
Disabled The module that provides this is turned off.
Not in plan Your current plan does not include this.
Blocked An administrator has blocked this.
Retired This is no longer offered.
Banned This was banned and can no longer run.
Quarantined Paused automatically after repeated errors.
Failed to load Something went wrong while showing this.
Missing What provided this is not installed.
No access You do not have permission to see this.
Code
<%- include('modules/ui/UnavailableContribution', { reason: 'blocked', size: 'inline' }) %>

Node (page-builder block, automation node)

Preview

Product carousel

Disabled

The module that provides this is turned off.

Product carousel

Not in plan

Your current plan does not include this.

Product carousel

Quarantined

Paused automatically after repeated errors.

Product carousel

Failed to load

Something went wrong while showing this.

Code
<%- include('modules/ui/UnavailableContribution', {
  reason: 'quarantined',
  size: 'node',
  title: 'Product carousel',
  action: { label: 'Retry', onClick: 'location.reload()' }
}) %>

Tab panel

Preview

No access

You do not have permission to see this.

Code
<%- include('modules/ui/UnavailableContribution', { reason: 'no-access', size: 'tab' }) %>
Source modules/ui/UnavailableContribution.ejs