<commit_before>{{! dashboard object listing}}
<ul class="tree-structure new-tree">
{{#list}}
  <li class="tree-item {{object_type}}" data-model="true">
    <div class="item-main" {{data 'model'}}>
      <a href="javascript://" class="openclose">
        <div class="row-fluid">
          <div class="span11">
            <div class="item-data">
              <div class="tree-title-area">
                {{title}}
              </div>
            </div>
          </div>
          <div class="span1">
            <div class="counter">
              {{^owner}}
                <i class="grcicon-people-warning"></i>
              {{/owner}}
            </div>
          </div>
        </div>
      </a>
    </div>
    
    <div class="tier-2-info item-content">
      <div class="tier-2-info-content">

        <div class="row-fluid">
          <div class="span6">
            <a href="{{viewLink}}" class="info-action">
              View {{object_type}}
              <i class="grcicon-goto"></i>
            </a>
          </div>
        </div>
        
        {{#description}}
        <div class="show-description">
          <div class="row-fluid">
            <div class="span12">
              <div class="tree-description short">
                {{{description}}}
              </div>
              {{{show_long}}}
            </div>
          </div>
        </div>
        {{/description}}
        
        <div class="row-fluid">
          <div class="span6">
            <div class="tree-info">
              <strong>Owner:</strong>
              {{^owner}}
                <span class="error">
                  Not Assigned
                </span>
              {{/owner}}
              {{#if owner}}
                {{#using owner=owner}}
                {{owner.name}}
                {{/using}}
              {{/if}}
            </div>
          </div>

          {{#url}}
          <div class="span6">
            <div class="tree-info">
              <strong>URL:</strong>
                <a class="url" href="{{schemed_url url}}" target="_blank">
                  {{url}}
                </a>
            </div>
          </div>
          {{/url}}

        </div>
      </div>
    </div>
  </li>
{{/list}}
</ul>
<ul class="new-tree">
  <li class="tree-item tree-item-add">
    {{#is_related}}
    <a
      href="javascript://"
      rel="tooltip"
      data-placement="left"
      data-toggle="modal-relationship-selector"
      data-modal-class="modal-wide"
      data-modal-reset="reset"
      data-original-title="Map {{model.title_singular}} to this {{parent_instance.constructor.shortName}}"
      data-related-model="{{model.model_singular}}"
      data-related-title-singular="{{model.title_singular}}"
      data-related-title-plural="{{model.title_plural}}"
      data-related-side="source" {{! FIXME This should depend on relationship type }}
      data-related-table-plural="{{model.table_plural}}"
      data-related-model-singular="{{model.model_singular}}"
      data-relationship-type="" {{! FIXME This should be a real relationship type }}
      data-tab-target="#related-objects-{{find_params.relationship_type_id}}">
      + {{model.title_singular}} {{find_params.relationship_type_id}}
    </a>
    {{/is_related}}
    {{^is_related}}
    <a
      href="javascript://"
      rel="tooltip"
      data-placement="left"
      data-toggle="modal-ajax-form"
      data-object-plural="{{model.model_plural.toLowerCase}}"
      data-object-singular="{{model.model_singular}}"
      data-modal-class="modal-wide"
      data-modal-reset="reset"
      data-original-title="Create New {{model.title_singular.toLowerCase}}">
      + {{model.title_singular}}
    </a>
    {{/is_related}}
  </li>
</ul><commit_msg>Fixed issues with some pages allowing program creation without proper permissions<commit_after>{{! dashboard object listing}}
<ul class="tree-structure new-tree">
{{#list}}
  <li class="tree-item {{object_type}}" data-model="true">
    <div class="item-main" {{data 'model'}}>
      <a href="javascript://" class="openclose">
        <div class="row-fluid">
          <div class="span11">
            <div class="item-data">
              <div class="tree-title-area">
                {{title}}
              </div>
            </div>
          </div>
          <div class="span1">
            <div class="counter">
              {{^owner}}
                <i class="grcicon-people-warning"></i>
              {{/owner}}
            </div>
          </div>
        </div>
      </a>
    </div>
    
    <div class="tier-2-info item-content">
      <div class="tier-2-info-content">

        <div class="row-fluid">
          <div class="span6">
            <a href="{{viewLink}}" class="info-action">
              View {{object_type}}
              <i class="grcicon-goto"></i>
            </a>
          </div>
        </div>
        
        {{#description}}
        <div class="show-description">
          <div class="row-fluid">
            <div class="span12">
              <div class="tree-description short">
                {{{description}}}
              </div>
              {{{show_long}}}
            </div>
          </div>
        </div>
        {{/description}}
        
        <div class="row-fluid">
          <div class="span6">
            <div class="tree-info">
              <strong>Owner:</strong>
              {{^owner}}
                <span class="error">
                  Not Assigned
                </span>
              {{/owner}}
              {{#if owner}}
                {{#using owner=owner}}
                {{owner.name}}
                {{/using}}
              {{/if}}
            </div>
          </div>

          {{#url}}
          <div class="span6">
            <div class="tree-info">
              <strong>URL:</strong>
                <a class="url" href="{{schemed_url url}}" target="_blank">
                  {{url}}
                </a>
            </div>
          </div>
          {{/url}}

        </div>
      </div>
    </div>
  </li>
{{/list}}
</ul>
{{#is_allowed_to_map parent_instance.constructor.shortName model.title_singular}}
  {{#is_related}}
    <ul class="new-tree">
      <li class="tree-item tree-item-add">
      <a
        href="javascript://"
        rel="tooltip"
        data-placement="left"
        data-toggle="modal-relationship-selector"
        data-modal-class="modal-wide"
        data-modal-reset="reset"
        data-original-title="Map {{model.title_singular}} to this {{parent_instance.constructor.shortName}}"
        data-related-model="{{model.model_singular}}"
        data-related-title-singular="{{model.title_singular}}"
        data-related-title-plural="{{model.title_plural}}"
        data-related-side="source" {{! FIXME This should depend on relationship type }}
        data-related-table-plural="{{model.table_plural}}"
        data-related-model-singular="{{model.model_singular}}"
        data-relationship-type="" {{! FIXME This should be a real relationship type }}
        data-tab-target="#related-objects-{{find_params.relationship_type_id}}">
        + {{model.title_singular}} {{find_params.relationship_type_id}}
      </a>
      </li>
    </ul>
  {{/is_related}}
{{/is_allowed_to_map}}
{{#is_allowed 'create' model.title_singular}}
  {{^is_related}}
    <ul class="new-tree">
      <li class="tree-item tree-item-add">
      <a
        href="javascript://"
        rel="tooltip"
        data-placement="left"
        data-toggle="modal-ajax-form"
        data-object-plural="{{model.model_plural.toLowerCase}}"
        data-object-singular="{{model.model_singular}}"
        data-modal-class="modal-wide"
        data-modal-reset="reset"
        data-original-title="Create New {{model.title_singular.toLowerCase}}">
        + {{model.title_singular}}
      </a>
      </li>
    </ul>
  {{/is_related}}
{{/is_allowed}}
{'fraction_non_alphanumeric': 0.17551435102870205, 'fraction_numerical': 0.00254000508001016, 'mean_word_length': 1.747732030704815, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 143, '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': '5559837', 'n_tokens_mistral': 2358, 'n_tokens_neox': 2287, 'n_words': 400}