<commit_before>{{!
    Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: <EMAIL>
    Maintained By: <EMAIL>
}}

{{#if allow_mapping_or_creating}}
{{#if_match parent_instance.constructor.shortName '^(Directive|Regulation|Policy|Standard|Contract|Program)$'}}
{{#if allow_creating}}
{{#is_allowed 'create' model.shortName context=null}}
<li class="tree-footer tree-item tree-item-add">
  <div class="row-fluid">
    <div class="span12 section-expandable">
      <a href="javascript://" class="section-add">
        + {{model.title_singular}}
      </a>
      <span class="section-expander">
        <a href="javascript://" class="section-create" data-toggle="modal-ajax-form" data-modal-reset="reset" data-dirty="#regulations, #combo" data-route="regulations" data-modal-class="modal-wide" data-object-singular="Control" data-object-plural="controls" data-object-params='{ "directive": {{parent_instance.id}} }'>
          <i class="grcicon-add-black"></i>
          Create {{model.title_singular}}
        </a>
        &nbsp;
        &nbsp;
        <a href="{{parent_instance.viewLink}}/import_controls?return_to={{param_current_location}}" class="section-import">
          <i class="grcicon-imp-exp"></i>
          Import Controls
        </a>
        &nbsp;
        &nbsp;
        {{#if list.length}}
        <a href="{{parent_instance.viewLink}}/export_controls?ids={{instance_ids list}}" class="section-import">
          <i class="grcicon-export"></i>
          Export Controls
        </a>
        {{/if}}
      </span>
    </div>
  </div>
</li><commit_msg>Fix Control creation on Directive page<commit_after>{{!
    Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: <EMAIL>
    Maintained By: <EMAIL>
}}

{{#if allow_mapping_or_creating}}
{{#if_match parent_instance.constructor.shortName '^(Directive|Regulation|Policy|Standard|Contract|Program)$'}}
{{#if allow_creating}}
{{#is_allowed 'create' model.shortName context=null}}
<li class="tree-footer tree-item tree-item-add">
  <div class="row-fluid">
    <div class="span12 section-expandable">
      <a href="javascript://" class="section-add">
        + {{model.title_singular}}
      </a>
      <span class="section-expander">
        <a href="javascript://" class="section-create" data-toggle="modal-ajax-form" data-modal-reset="reset" data-dirty="#regulations, #combo" data-route="regulations" data-modal-class="modal-wide" data-object-singular="Control" data-object-plural="controls" data-object-params='{ "directive": { "type": "{{parent_instance.constructor.shortName}}", "id": {{parent_instance.id}} } }'>
          <i class="grcicon-add-black"></i>
          Create {{model.title_singular}}
        </a>
        &nbsp;
        &nbsp;
        <a href="{{parent_instance.viewLink}}/import_controls?return_to={{param_current_location}}" class="section-import">
          <i class="grcicon-imp-exp"></i>
          Import Controls
        </a>
        &nbsp;
        &nbsp;
        {{#if list.length}}
        <a href="{{parent_instance.viewLink}}/export_controls?ids={{instance_ids list}}" class="section-import">
          <i class="grcicon-export"></i>
          Export Controls
        </a>
        {{/if}}
      </span>
    </div>
  </div>
</li>
{'fraction_non_alphanumeric': 0.17706528018486423, 'fraction_numerical': 0.00462160600808781, 'mean_word_length': 3.422733077905492, 'pattern_counts': {'":': 4, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4039615', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1079, 'n_words': 203}