<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>
}}

{{! dashboard object listing}}
<ul class="tree-structure new-tree">
  {{#each list}}
    <li class="tree-item role" data-model="true" {{data 'model'}}>
      <div class="item-main">
        <div class="item-wrap">
          <div class="openclose">
            <span class="status-label status-{{to_class instance.status '_'}}"></span>
            <i class="grcicon-arrow-right"></i>
          </div>
          <div class="select">
            <div class="item-data">
              <div class="row-fluid">
                <div class="span4">
                  <div class="title tree-title-area">
                    {{{render '/static/mustache/people/popover.mustache' person=this}}}
                  </div>
                </div>
                <div class="span2">
                  <div class="email tree-title-area">
                    {{#if_match name '\\\\S'}}
                      {{#name}}
                        <span class="email">{{email}}</span>
                      {{/name}}
                    {{/if_match}}
                    {{^if is_enabled}}
                      <span class="user-disabled">
                        (Disabled)
                      </span>
                    {{/if}}
                  </div>
                </div>
                <div class="span2">
                  {{#person_roles this "System|Admin"}}
                    {{#if roles.length}}
                      <li>
                        <div class="item-data">
                          <div class="tree-title-area">
                            <span class="role" title="{{#roles}}{{permission_summary}} {{/roles}}">
                              {{roles.0.permission_summary}}
                            </span>
                          </div>
                        </div>
                      </li>
                    {{else}}
                      <li>
                        <div class="item-data">
                          <div class="tree-title-area">
                            <span class="no-role">
                              No Access
                            </span>
                          </div>
                        </div>
                      </li>
                    {{/if}}
                  {{/person_roles}}
                </div>
                <div class="span4">
                  <ul class="tree-action-list">
                    <li class="show-datails">
                      <a href="/people/{{id}}">
                        <i class="grcicon-to-right"></i>
                      </a>
                    </li>
                  </ul>
                </div>

              </div>
            </div>
          </div><!-- item-data end -->
        </div><!-- select end -->
      </div><!-- item-wrap end -->
    </div><!-- item-main end -->

      <div class="tier-2-info item-content">
        <div class="tier-2-info-content">
            
          <div class="action-bar">
            <ul class="change-links">              
              {{#is_allowed 'create' 'delete' 'UserRole' context=parent_instance.context.id}}
                <li>
                  <a href="javascript://" data-modal-class="modal-wide" data-placement="left" data-toggle="user-roles-modal-selector" data-modal-selector-options="user_roles" data-person_id="{{ id }}">
                    <i class="grcicon-role-color"></i>
                    <span>Edit Authorizations</span>
                  </a>
                </li>
              {{/is_allowed}}
              {{#is_allowed 'update' instance}}
                <li>
                  <a href="javascript://" data-object-plural="people" data-object-singular="Person" data-object-id="{{id}}" data-modal-class="modal-wide" data-placement="left" data-toggle="modal-ajax-form">
                    <i class="grcicon-edit"></i>
                    <span>Edit Person</span>
                  </a>
                </li>
              {{/is_allowed}}
            </ul>
            <ul>
              <li>
                <a href="/people/{{id}}">
                  View Profile Page
                  <i class="grcicon-goto"></i>
                </a>
              </li>
            </ul>
          </div>
          
          <div class="small-info">
            
            {{#if_match name '\\\\S'}}
              {{#name}}
                <div class="row-fluid wrap-row">
                  <div class="span12">
                    <h6>Name</h6>
                    <h3>{{name}}</h3>
                  </div>
                </div>
              {{/name}}
            {{/if_match}}

            {{#if_match email '\\\\S'}}
              {{#email}}
                <div class="row-fluid wrap-row">
                  <div class="span12">
                    <h6>Email</h6>
                    <p>
                      <a href='mailto:{{email}}' target="_blank">
                        {{email}}
                      </a>
                    </p>
                  </div>
                </div>
              {{/email}}
            {{/if}}

            {{#if_match company '\\\\S'}}
              {{#company}}
                <div class="row-fluid wrap-row">
                  <div class="span12">
                    <h6>Company</h6>
                    <h3>{{company}}</h3>
                  </div>
                </div>
              {{/company}}
            {{/if_match}}

            <div class="row-fluid wrap-row">
              <div class="span12">
                <h6>Authorizations</h6>
                <p>
                  {{#person_roles this "System|Admin"}}
                    {{#roles}}
                      <span class="role">
                        {{permission_summary}}
                      </span>
                    {{/roles}}
                  {{/person_roles}}                  
                </p>
              </div>
            </div>            
          </div>          
          
        </div>
      </div>
    </li>
  {{/each}}

  <li class="tree-item tree-item-add">
    {{#if has_prev_page}}
    <a href="javascript://" class="view-more-paging">
      Previous Page
    </a>
    {{/if}}

    <a class="btn-add" data-object-plural="people" data-modal-class="modal-wide" href="javascript://" data-object-singular="Person" data-toggle="modal-ajax-form" data-modal-reset="reset">
      Add Person
    </a>

    {{#if has_next_page}}
    <a href="javascript://" class="pull-right view-more-paging" data-next="true">
      Next Page<commit_msg>admin dashboard people widget styled<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>
}}

{{! dashboard object listing}}
<ul class="tree-structure new-tree">
  {{#each list}}
    <li class="tree-item role" data-model="true" {{data 'model'}}>
      <div class="item-main">
        <div class="item-wrap">
          <div class="openclose">
            <span class="status-label status-{{to_class instance.status '_'}}"></span>
            <i class="grcicon-arrow-right"></i>
          </div>
          <div class="select">
            <div class="item-data">
              <div class="row-fluid">
                <div class="span4">
                  <div class="title tree-title-area">
                    {{{render '/static/mustache/people/popover.mustache' person=this}}}
                  </div>
                </div>
                <div class="span2">
                  <div class="email tree-title-area">
                    {{#if_match name '\\\\S'}}
                      {{#name}}
                        <span class="email">{{email}}</span>
                      {{/name}}
                    {{/if_match}}
                    {{^if is_enabled}}
                      <span class="user-disabled">
                        (Disabled)
                      </span>
                    {{/if}}
                  </div>
                </div>
                <div class="span2">
                  {{#person_roles this "System|Admin"}}
                    {{#if roles.length}}
                      <li>
                        <div class="item-data">
                          <div class="tree-title-area">
                            <span class="role" title="{{#roles}}{{permission_summary}} {{/roles}}">
                              {{roles.0.permission_summary}}
                            </span>
                          </div>
                        </div>
                      </li>
                    {{else}}
                      <li>
                        <div class="item-data">
                          <div class="tree-title-area">
                            <span class="no-role">
                              No Access
                            </span>
                          </div>
                        </div>
                      </li>
                    {{/if}}
                  {{/person_roles}}
                </div>
                <div class="span4">
                  <ul class="tree-action-list">
                    <li class="show-datails">
                      <a href="/people/{{id}}">
                        <i class="grcicon-to-right"></i>
                      </a>
                    </li>
                  </ul>
                </div>

              </div>
            </div>
          </div><!-- item-data end -->
        </div><!-- select end -->
      </div><!-- item-wrap end -->
    </div><!-- item-main end -->

      <div class="tier-2-info item-content">
        <div class="tier-2-info-content">

          <div class="details-wrap">
            <a class="btn btn-small btn-draft dropdown-toggle" href="#" data-toggle="dropdown"><i class="grcicon-setup-color"></i></a>
            <ul class="dropdown-menu" aria-labelledby="drop1" role="menu">
              <li>
                <a href="/people/{{id}}">
                  <i class="grcicon-goto"></i>
                  View Profile Page
                </a>
              </li>
              {{#is_allowed 'create' 'delete' 'UserRole' context=parent_instance.context.id}}
                <li class="border">
                  <a href="javascript://" data-modal-class="modal-wide" data-placement="left" data-toggle="user-roles-modal-selector" data-modal-selector-options="user_roles" data-person_id="{{ id }}">
                    <i class="grcicon-role-color"></i>
                    <span>Edit Authorizations</span>
                  </a>
                </li>
              {{/is_allowed}}
              {{#is_allowed 'update' instance}}
                <li>
                  <a href="javascript://" data-object-plural="people" data-object-singular="Person" data-object-id="{{id}}" data-modal-class="modal-wide" data-placement="left" data-toggle="modal-ajax-form">
                    <i class="grcicon-edit"></i>
                    <span>Edit Person</span>
                  </a>
                </li>
              {{/is_allowed}}
            </ul>
          </div>

          <div class="tier-content">
            {{#if_match name '\\\\S'}}
              {{#name}}
                <div class="row-fluid wrap-row">
                  <div class="span12">
                    <h6>Name</h6>
                    <h3>{{name}}</h3>
                  </div>
                </div>
              {{/name}}
            {{/if_match}}

            {{#if_match email '\\\\S'}}
              {{#email}}
                <div class="row-fluid wrap-row">
                  <div class="span12">
                    <h6>Email</h6>
                    <p>
                      <a href='mailto:{{email}}' target="_blank">
                        {{email}}
                      </a>
                    </p>
                  </div>
                </div>
              {{/email}}
            {{/if}}

            {{#if_match company '\\\\S'}}
              {{#company}}
                <div class="row-fluid wrap-row">
                  <div class="span12">
                    <h6>Company</h6>
                    <h3>{{company}}</h3>
                  </div>
                </div>
              {{/company}}
            {{/if_match}}

            <div class="row-fluid wrap-row">
              <div class="span12">
                <h6>Authorizations</h6>
                <p>
                  {{#person_roles this "System|Admin"}}
                    {{#roles}}
                      <span class="role">
                        {{permission_summary}}
                      </span>
                    {{/roles}}
                  {{/person_roles}}
                </p>
              </div>
            </div>
          </div>

        </div>
      </div>
    </li>
  {{/each}}

  <li class="tree-item tree-item-add">
    {{#if has_prev_page}}
    <a href="javascript://" class="view-more-paging">
      Previous Page
    </a>
    {{/if}}

    <a class="btn-add" data-object-plural="people" data-modal-class="modal-wide" href="javascript://" data-object-singular="Person" data-toggle="modal-ajax-form" data-modal-reset="reset">
      Add Person
    </a>

    {{#if has_next_page}}
    <a href="javascript://" class="pull-right view-more-paging" data-next="true">
      Next Page
{'fraction_non_alphanumeric': 0.1601365390323538, 'fraction_numerical': 0.004971801721579103, 'mean_word_length': 1.0342641509433963, 'pattern_counts': {'":': 0, '<': 293, '<?xml version=': 0, '>': 293, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4148579', 'n_tokens_mistral': 3759, 'n_tokens_neox': 3494, 'n_words': 670}