<commit_before>{% import 'apostrophe-ui:components/dropdowns.html' as dropdowns with context %}

{% if data.permissions.edit %}
{#<ul class="apos-admin-bar-item apos-accordion-menu">
  <li class="apos-accordion-title"><i class="{{ menuIcon }}"></i> {{ __(data.options.pluralLabel) }}</li>
  <li class="apos-accordion-items">
    <ul class="apos-page-bar">
      <li href="#" class="apos-control apos-accordion-item apos-button apos-new-button apos-new-snippet-button" data-create-{{ data.options.name | css }}>{{ __('New %s', __(data.options.label)) }}</li>
      <li href="#" class="apos-control apos-accordion-item apos-button apos-manage-button apos-manage-snippet-button" data-manage-{{ data.options.name | css }}>{{ __('Manage %s', __(data.options.pluralLabel)) }}</li>
      {% if data.options.import %}
        <li href="#" class="apos-control apos-accordion-item apos-button apos-manage-button apos-manage-snippet-button" data-import-{{ data.options.name | css }}>{{ __('Import %s', __(data.options.pluralLabel) ) }}</li>
        {% if data.options.export %}
          <li href="#" class="apos-control apos-accordion-item apos-button apos-manage-button apos-manage-snippet-button" data-export-{{ data.options.name | css }}>{{ __('Export %s', __(data.options.pluralLabel) ) }}</li>
        {% endif %}
      {% endif %}
    </ul>
  </li>
</ul>#}
  <div class="apos-admin-bar-item">
    <div class="apos-admin-bar-item">
      {{ 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'}
      ) }}
    </div>
  </div>
{% endif %}<commit_msg>Hook in real menu options to admin bar dropdowns<commit_after>{% import 'apostrophe-ui:components/dropdowns.html' as dropdowns with context -%}
{%- macro listMenu() -%}
  <li href="#" class="apos-dropdown-item" data-create-{{ data.options.name | css }}>{{ __('New %s', __(data.options.label)) }}</li>
  <li href="#" class="apos-dropdown-item" data-manage-{{ data.options.name | css }}>{{ __('Manage %s', __(data.options.pluralLabel)) }}</li>
  {%- if data.options.import -%}
    <li href="#" class="apos-dropdown-item" data-import-{{ data.options.name | css }}>{{ __('Import %s', __(data.options.pluralLabel) ) }}</li>
    {%- if data.options.export -%}
      <li href="#" class="apos-dropdown-item" data-export-{{ data.options.name | css }}>{{ __('Export %s', __(data.options.pluralLabel) ) }}</li>
    {%- endif -%}
  {%- endif -%}
{%- endmacro -%}
{%- if data.permissions.edit -%}
  <div class="apos-admin-bar-item">
    <div class="apos-admin-bar-item">
      {{ 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 }
      ) }}
    </div>
  </div>
{%- endif -%}
{'fraction_non_alphanumeric': 0.21798875702685822, 'fraction_numerical': 0.0, 'mean_word_length': 3.3401084010840107, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1780227', 'n_tokens_mistral': 1139, 'n_tokens_neox': 1105, 'n_words': 222}