<commit_before><div class="container">
  <p>Her kan du søke etter ansatte og se en oversikt over alle avdelinger i Telemark fylkeskommune. Søkefeltet ligger øverst på siden.</p>


  <div class="form-group">
    <div class="row">
      <div class="col-sm-12 col-md-6">
        <input id="searchbox" type="text" class="form-control is-fullwidth" placeholder="Navn eller avdeling" {{action "search" on="change"}} value={{q}} />
      </div>
      <div class="col-sm-8 col-md-4">
          <select onchange={{action "searchDepartment" value="target.value"}} class="custom-select is-fullwidth">
          <option value="">Alle avdelinger</option>
          {{#each model.departments as |department|}}
            <option selected={{is-department-selected department departmentId}} value="{{department.id}}">{{department.name}}</option>
          {{/each}}
        </select>
      </div>
      <div class="col-sm-4 col-md-2">
        <button class="btn btn-primary is-fullwidth" {{action "searchButton" q}}>
          Søk <i class="material-icons search-icon">search</i>
        </button>
      </div>
    </div>
  </div>

  {{#if isLoading}}
    {{#load-indicator}}
      <p>Finner ansatte</p>
    {{/load-indicator}}
  {{else}}
    <div id="results">
      {{#if model.people}}
        <h1>Søket ga {{model.people.length}} treff</h1>
      {{/if}}
      <div class="table table-striped">
        <div class="tbody">
          {{#if model.people}}
            <div class="tr thead">
              <div class="th"><strong>Navn</strong></div>
              <div class="th"><strong>Avdeling/Stilling</strong></div>
              <div class="th"><strong>Telefon</strong></div>
              <div class="th"><strong>Epost</strong></div>
            </div>
          {{/if}}

          {{#each model.people as |person|}}
            <div class="tr">
              <div class="td person">
                {{#link-to "employees.employee" person class="person"}}
                  {{person.givenName}} {{person.familyName}}
                {{/link-to}}&nbsp;
              </div>
              <div class="td department">
                {{#each person.positions as |position|}}
                  {{#link-to "departments.department" position.department.id}}
                    {{position.department.name}}
                  {{/link-to}}
                {{/each}}
              </div>
              <div class="td phone">
                {{#if person.workPhone}}
                  <i class="material-icons">phone</i> <a href="tel:{{person.workPhone}}">{{person.workPhone}}</a>
                {{/if}}
                {{#if person.mobilePhone}}
                  <i class="material-icons">phone_iphone</i> <a href="tel:{{person.mobilePhone}}">{{person.mobilePhone}}</a>
                {{/if}}
              </div>
              <div class="td email">
                {{#if person.email}}
                  <i class="material-icons">email</i> <a href="mailto:{{person.email}}">{{person.email}}</a>
                {{/if}}
              </div>
            </div>
          {{/each}}
        </div>
      </div>
    </div>

  {{/if}}

  {{outlet}}
</div>
<commit_msg>Removed "stilling" from table header<commit_after><div class="container">
  <p>Her kan du søke etter ansatte og se en oversikt over alle avdelinger i Telemark fylkeskommune. Søkefeltet ligger øverst på siden.</p>


  <div class="form-group">
    <div class="row">
      <div class="col-sm-12 col-md-6">
        <input id="searchbox" type="text" class="form-control is-fullwidth" placeholder="Navn eller avdeling" {{action "search" on="change"}} value={{q}} />
      </div>
      <div class="col-sm-8 col-md-4">
          <select onchange={{action "searchDepartment" value="target.value"}} class="custom-select is-fullwidth">
          <option value="">Alle avdelinger</option>
          {{#each model.departments as |department|}}
            <option selected={{is-department-selected department departmentId}} value="{{department.id}}">{{department.name}}</option>
          {{/each}}
        </select>
      </div>
      <div class="col-sm-4 col-md-2">
        <button class="btn btn-primary is-fullwidth" {{action "searchButton" q}}>
          Søk <i class="material-icons search-icon">search</i>
        </button>
      </div>
    </div>
  </div>

  {{#if isLoading}}
    {{#load-indicator}}
      <p>Finner ansatte</p>
    {{/load-indicator}}
  {{else}}
    <div id="results">
      {{#if model.people}}
        <h1>Søket ga {{model.people.length}} treff</h1>
      {{/if}}
      <div class="table table-striped">
        <div class="tbody">
          {{#if model.people}}
            <div class="tr thead">
              <div class="th"><strong>Navn</strong></div>
              <div class="th"><strong>Avdeling</strong></div>
              <div class="th"><strong>Telefon</strong></div>
              <div class="th"><strong>Epost</strong></div>
            </div>
          {{/if}}

          {{#each model.people as |person|}}
            <div class="tr">
              <div class="td person">
                {{#link-to "employees.employee" person class="person"}}
                  {{person.givenName}} {{person.familyName}}
                {{/link-to}}&nbsp;
              </div>
              <div class="td department">
                {{#each person.positions as |position|}}
                  {{#link-to "departments.department" position.department.id}}
                    {{position.department.name}}
                  {{/link-to}}
                {{/each}}
              </div>
              <div class="td phone">
                {{#if person.workPhone}}
                  <i class="material-icons">phone</i> <a href="tel:{{person.workPhone}}">{{person.workPhone}}</a>
                {{/if}}
                {{#if person.mobilePhone}}
                  <i class="material-icons">phone_iphone</i> <a href="tel:{{person.mobilePhone}}">{{person.mobilePhone}}</a>
                {{/if}}
              </div>
              <div class="td email">
                {{#if person.email}}
                  <i class="material-icons">email</i> <a href="mailto:{{person.email}}">{{person.email}}</a>
                {{/if}}
              </div>
            </div>
          {{/each}}
        </div>
      </div>
    </div>

  {{/if}}

  {{outlet}}
</div>

{'fraction_non_alphanumeric': 0.1854608805828318, 'fraction_numerical': 0.0028508077288565093, 'mean_word_length': 1.9317548746518105, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 153, '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': '921529', 'n_tokens_mistral': 1982, 'n_tokens_neox': 1897, 'n_words': 382}