<commit_before>{{! upload evidence to GDrive by clicking this button}}

{{#if allow_mapping_or_creating}}
{{#with_current_user_as "current_user"}}
{{#if_helpers '\
  #is_allowed' "create" 'ObjectDocument' _0_context=parent_instance.context.id '\
    and ^if_equals' parent_instance.status 'Accepted' '\
  or #is_allowed' '__GGRC_ADMIN__' 'Audit' _2_context=null}}
<li class="tree-footer tree-item tree-item-add">
  <div class="row-fluid">
    <div class="span12">

      <a
        href="javascript://"
        data-placement="left"
        data-toggle="gdrive-picker"
        data-response-id="{{parent_instance.id}}"
        title="Upload Evidence"
        >
        Upload Evidence
      </a>

    </div>
  </div>
</li>
{{/if_helpers}}
{{/with_current_user_as}}
{{/if}}<commit_msg>Don't allow upload of evidence until a folder is created<commit_after>{{! upload evidence to GDrive by clicking this button}}

{{#if allow_mapping_or_creating}}
{{#with_current_user_as "current_user"}}
{{#if_helpers '\
  #is_allowed' "create" 'ObjectDocument' _0_context=parent_instance.context.id '\
    and ^if_equals' parent_instance.status 'Accepted' '\
  or #is_allowed' '__GGRC_ADMIN__' 'Audit' _2_context=null}}
<li class="tree-footer tree-item tree-item-add">
  <div class="row-fluid">
    <div class="span12">
      {{#using request=parent_instance.request}}
      {{#with_mapping 'folders' request}}
	      {{#if folders.0.instance.selfLink}}
	      <a
	        href="javascript://"
	        data-placement="left"
	        data-toggle="gdrive-picker"
	        data-response-id="{{parent_instance.id}}"
	        title="Upload Evidence"
	        >
	        Upload Evidence
	      </a>
	      {{else}}
	      The Audit Lead must create a Request folder before Evidence can be uploaded.
	      {{/if}}
      {{/with_mapping}}
      {{/using}}
    </div>
  </div>
</li>
{{/if_helpers}}
{{/with_current_user_as}}
{{/if}}
{'fraction_non_alphanumeric': 0.15775681341719078, 'fraction_numerical': 0.0047169811320754715, 'mean_word_length': 3.309255079006772, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '6444118', 'n_tokens_mistral': 656, 'n_tokens_neox': 630, 'n_words': 134}