<commit_before><section class="wh-content-head">
  <h1>{{t 'wh.settings.team.current.title'}}</h1>
</section>
<section class="wh-content-subhead">
  {{t 'wh.settings.team.current.description'}}
</section>

<section class="wh-content-edit">

  <form class="wy-aligned">
    {{#if session.isDeployed}}
      <div class="wy-control-group">
        <label>{{t 'wh.settings.team.invite.instruction'}}</label>
        {{input type="email" required="required" value=inviteEmail }}
        <div class="wy-form-message">{{t 'wh.settings.team.invite.help'}}</div>
      </div>
      <div class="wy-btn-group">
        <button class="btn btn-neutral icon icon-user" {{ bind-attr disabled=isInvalidEmail }} {{ action "sendInvite" }}> {{t 'wh.settings.team.invite.action'}}</button>
      </div>
    {{else}}
      <div class="wy-alert wy-alert-danger">
        <div class="wy-alert-title">{{t 'wh.settings.team.deploy.title'}}</div>
        <p>{{t 'wh.settings.team.deploy.instruction'}}</p>
      </div>
    {{/if}}


    {{#if error}}
      <div class="wy-alert wy-alert-warning">
        <div class="wy-alert-title">{{ error.code }}</div>
        {{error.message}}
      </div>
    {{/if}}

  </form>

  <table class="wy-table wy-table-bordered-rows full-width">
    <thead>
      <tr>
        <th>{{t 'wh.settings.team.current.email'}}</th>
        <th>{{t 'wh.settings.team.current.permissions'}}</th>
      </tr>
    </thead>
    <tbody>

      {{#each user in filteredContent}}
        <tr>
          <td>{{ user.email }}</td>
          <td>

            <div class="wy-dropdown wy-dropdown-bubble">
              <span class="btn btn-neutral icon icon-lock">
                {{#if user.owner}}
                  {{t 'wh.settings.team.current.owner'}}
                {{else}}
                  {{#if user.group}}
                    {{user.group.name}}
                  {{else}}
                    {{t 'wh.settings.team.current.contributor'}}
                  {{/if}}
                {{/if}}
                <span class="caret"></span>
              </span>
              <dl class="wy-dropdown-menu">
                {{#unless user.potential}}
                  <dd><a href="" {{ action "userToGroup" user "owner" }}>{{t 'wh.settings.team.current.toOwner'}}</a></dd>
                {{/unless}}
                <dd><a href="" {{ action "userToGroup" user "user" }}>{{t 'wh.settings.team.current.toContributor'}}</a></dd>
                {{#each group in groups}}
                  <dd><a href="" {{ action "userToGroup" user group }}>Change to {{group.name}}</a></dd>
                {{/each}}
                {{#unless user.potential}}
                  <dd><a href="" {{ action "removeUser" user }}>{{t 'wh.settings.team.current.remove'}}</a></dd>
                {{/unless}}
              </dl>
              {{#if user.potential }}
                {{t 'wh.settings.team.current.waiting'}} (<a href="" class="icon icon-remove-sign" {{ action "removePotential" user }}> {{t 'wh.settings.team.current.cancel'}}</a>)
              {{/if}}
            </div>

          </td>
        </tr>
      {{/each}}

    </tbody>
  </table>
</section>

<section class="wh-content-head wh-content-head-again">
  Manage group permissions
  <a class="btn btn-small btn-preview btn-success icon icon-plus-sign"> Add new group</a>
  <!-- TODO: Remove this tran 'wh.settings.team.invite.title'}} -->
</section>

<section class="wh-content-edit">


  <div class="wy-alert">
    Use groups to restrict access to portions of your CMS. Webhook's two default groups (owners and editors) can not be edited.</p><commit_msg>move verification into own td<commit_after><section class="wh-content-head">
  <h1>{{t 'wh.settings.team.current.title'}}</h1>
</section>
<section class="wh-content-subhead">
  {{t 'wh.settings.team.current.description'}}
</section>

<section class="wh-content-edit">

  <form class="wy-aligned">
    {{#if session.isDeployed}}
      <div class="wy-control-group">
        <label>{{t 'wh.settings.team.invite.instruction'}}</label>
        {{input type="email" required="required" value=inviteEmail }}
        <div class="wy-form-message">{{t 'wh.settings.team.invite.help'}}</div>
      </div>
      <div class="wy-btn-group">
        <button class="btn btn-neutral icon icon-user" {{ bind-attr disabled=isInvalidEmail }} {{ action "sendInvite" }}> {{t 'wh.settings.team.invite.action'}}</button>
      </div>
    {{else}}
      <div class="wy-alert wy-alert-danger">
        <div class="wy-alert-title">{{t 'wh.settings.team.deploy.title'}}</div>
        <p>{{t 'wh.settings.team.deploy.instruction'}}</p>
      </div>
    {{/if}}


    {{#if error}}
      <div class="wy-alert wy-alert-warning">
        <div class="wy-alert-title">{{ error.code }}</div>
        {{error.message}}
      </div>
    {{/if}}

  </form>

  <table class="wy-table wy-table-bordered-rows full-width">
    <thead>
      <tr>
        <th>{{t 'wh.settings.team.current.email'}}</th>
        <th></th>
        <th>{{t 'wh.settings.team.current.permissions'}}</th>
      </tr>
    </thead>
    <tbody>

      {{#each user in filteredContent}}
        <tr>
          <td>
            {{ user.email }}
          </td>
          <td>
            {{#if user.potential }}
              {{t 'wh.settings.team.current.waiting'}} (<a href="" class="icon icon-remove-sign" {{ action "removePotential" user }}> {{t 'wh.settings.team.current.cancel'}}</a>)
            {{/if}}
          </td>
          <td>

            <div class="wy-dropdown wy-dropdown-bubble">
              <span class="btn btn-neutral icon icon-lock">
                {{#if user.owner}}
                  {{t 'wh.settings.team.current.owner'}}
                {{else}}
                  {{#if user.group}}
                    {{user.group.name}}
                  {{else}}
                    {{t 'wh.settings.team.current.contributor'}}
                  {{/if}}
                {{/if}}
                <span class="caret"></span>
              </span>
              <dl class="wy-dropdown-menu">
                {{#unless user.potential}}
                  <dd><a href="" {{ action "userToGroup" user "owner" }}>{{t 'wh.settings.team.current.toOwner'}}</a></dd>
                {{/unless}}
                <dd><a href="" {{ action "userToGroup" user "user" }}>{{t 'wh.settings.team.current.toContributor'}}</a></dd>
                {{#each group in groups}}
                  <dd><a href="" {{ action "userToGroup" user group }}>Change to {{group.name}}</a></dd>
                {{/each}}
                {{#unless user.potential}}
                  <dd><a href="" {{ action "removeUser" user }}>{{t 'wh.settings.team.current.remove'}}</a></dd>
                {{/unless}}
              </dl>
            </div>

          </td>
        </tr>
      {{/each}}

    </tbody>
  </table>
</section>

<section class="wh-content-head wh-content-head-again">
  Manage group permissions
  <a class="btn btn-small btn-preview btn-success icon icon-plus-sign"> Add new group</a>
  <!-- TODO: Remove this tran 'wh.settings.team.invite.title'}} -->
</section>

<section class="wh-content-edit">


  <div class="wy-alert">
    Use groups to restrict access to portions of your CMS. Webhook's two default groups (owners and editors) can not be edited.</p>
{'fraction_non_alphanumeric': 0.1969509682735888, 'fraction_numerical': 0.0005493750858398572, 'mean_word_length': 2.051969823973177, 'pattern_counts': {'":': 0, '<': 171, '<?xml version=': 0, '>': 171, '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': '3378427', 'n_tokens_mistral': 2374, 'n_tokens_neox': 2221, 'n_words': 458}