<commit_before>{{#title}}Annotations{{/title}}

{{#if auth.rights.list_annotations}}
  <ul class="nav nav-pills">
{{else}}
  {{#if auth.rights.add_annotation}}
    <ul class="nav nav-pills">
  {{/if}}
{{/if}}

{{#if auth.rights.list_annotations}}
  <li class="{{#equals subpage 'list'}}{{#equals filter ''}}active{{/equals}}{{/equals}}">
    <a href="{{uri base 'annotations'}}"><i class="fa fa-th"></i> All annotations</a>
  </li>
{{/if}}

{{#if auth.rights.list_annotations}}
  <li class="{{#equals subpage 'list'}}{{#equals filter 'own'}}active{{/equals}}{{/equals}}">
    <a href="{{uri base 'annotations' filter='own'}}"><i class="fa fa-th-large"></i> My annotations</a>
  </li>
{{else}}
  {{#if auth.rights.add_annotation}}
    <li class="{{#equals subpage 'list'}}{{#equals filter 'own'}}active{{/equals}}{{/equals}}">
      <a href="{{uri base 'annotations' filter='own'}}"><i class="fa fa-th-large"></i> My annotations</a>
    </li>
  {{/if}}
{{/if}}

{{#if auth.rights.add_annotation}}
  <li class="pull-right{{#equals subpage 'add'}} active{{/equals}}">
    <a href="{{uri base 'annotations_add'}}"><i class="fa fa-plus"></i> Add annotation</a>
  </li>
{{/if}}

{{#if auth.rights.list_annotations}}
  </ul>
{{else}}
  {{#if auth.rights.add_annotation}}
    </ul>
  {{/if}}
{{/if}}

{{> (lookup . 'subpage') }}


{{#*inline 'add'}}

<form action="{{uri base 'data_sources' data_source.uri 'annotations'}}" method="post">
  <fieldset>
<commit_msg>Fix target URI in create annotation form<commit_after>{{#title}}Annotations{{/title}}

{{#if auth.rights.list_annotations}}
  <ul class="nav nav-pills">
{{else}}
  {{#if auth.rights.add_annotation}}
    <ul class="nav nav-pills">
  {{/if}}
{{/if}}

{{#if auth.rights.list_annotations}}
  <li class="{{#equals subpage 'list'}}{{#equals filter ''}}active{{/equals}}{{/equals}}">
    <a href="{{uri base 'annotations'}}"><i class="fa fa-th"></i> All annotations</a>
  </li>
{{/if}}

{{#if auth.rights.list_annotations}}
  <li class="{{#equals subpage 'list'}}{{#equals filter 'own'}}active{{/equals}}{{/equals}}">
    <a href="{{uri base 'annotations' filter='own'}}"><i class="fa fa-th-large"></i> My annotations</a>
  </li>
{{else}}
  {{#if auth.rights.add_annotation}}
    <li class="{{#equals subpage 'list'}}{{#equals filter 'own'}}active{{/equals}}{{/equals}}">
      <a href="{{uri base 'annotations' filter='own'}}"><i class="fa fa-th-large"></i> My annotations</a>
    </li>
  {{/if}}
{{/if}}

{{#if auth.rights.add_annotation}}
  <li class="pull-right{{#equals subpage 'add'}} active{{/equals}}">
    <a href="{{uri base 'annotations_add'}}"><i class="fa fa-plus"></i> Add annotation</a>
  </li>
{{/if}}

{{#if auth.rights.list_annotations}}
  </ul>
{{else}}
  {{#if auth.rights.add_annotation}}
    </ul>
  {{/if}}
{{/if}}

{{> (lookup . 'subpage') }}


{{#*inline 'add'}}

<form action="{{uri base 'annotations'}}" method="post">
  <fieldset>

{'fraction_non_alphanumeric': 0.26925722145804676, 'fraction_numerical': 0.0, 'mean_word_length': 4.961065573770492, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 65, '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': '6506222', 'n_tokens_mistral': 1086, 'n_tokens_neox': 1056, 'n_words': 222}