{% import 'apostrophe-ui:components/dropdowns.html' as dropdowns with context -%} {%- macro listMenu() -%}
  • {{ __('New %s', __(data.options.label)) }}
  • {{ __('Manage %s', __(data.options.pluralLabel)) }}
  • {%- if data.options.import -%}
  • {{ __('Import %s', __(data.options.pluralLabel) ) }}
  • {%- if data.options.export -%}
  • {{ __('Export %s', __(data.options.pluralLabel) ) }}
  • {%- endif -%} {%- endif -%} {%- endmacro -%} {%- if data.permissions.edit -%}
    {{ dropdowns.base({ label: data.options.pluralLabel, items: [ { label: 'One of the things', link: '#', action: 'data-something' }, { label: 'Another Stuff', link: '#', action: 'data-something' }, { label: 'OKAY', link: '#', action: 'data-something' } ]}, 'admin', { direction: 'down', listMacro: listMenu } ) }}
    {%- endif -%}