<commit_before>{{#if noTypesLive}}
  <div class="wy-alert wy-alert-danger">
    <div class="wy-alert-title">{{t 'wh.index.welcome.noTypesTitle'}}</div>
    <p>{{t 'wh.index.welcome.noTypesMessage'}}</p>
  </div>
{{else}}

  {{#unless isEditingMessage}}

    <article>{{to-markdown settings.siteMessage}}</article>
    {{#if session.isOwner}}
      <button type="button" class="btn btn-neutral btn-small icon icon-pencil" {{ action "editMessage" }}> {{t 'wh.index.welcome.edit'}}</button>
    {{/if}}

  {{else}}
    <div class="wy-control-group">
      {{markdown-editor value=settings.siteMessage session=session}}
    </div>

    <button type="button" class="btn btn-info btn-small icon icon-ok-sign" {{ action "saveMessage" settings}}> {{t 'wh.index.welcome.save'}}</button>
    <button type="button" class="btn btn-link btn-small icon icon-remove-sign" {{ action "cancelMessage" }}> {{t 'wh.index.welcome.cancel'}}</button>

  {{/unless}}

  <hr>

  {{webhook-blog}}

  {{#if session.serverMessages}}
    <section>
      <h2>{{t 'wh.index.history'}}</h2>

      <table class="wy-table wy-table-bordered-rows full-width">
        <thead>
          <tr>
            <th>Type</th>
            <th>Message</th>
            <th>Date</th>
          </tr>
        </thead>
        <tbody>
          {{#each session.serverMessages}}
            <tr>
              <td>{{code}}</td>
              <td>{{message}}</td>
              <td>{{format-time timestamp}}</td><commit_msg>colors<commit_after>{{#if noTypesLive}}
  <div class="wy-alert wy-alert-danger">
    <div class="wy-alert-title">{{t 'wh.index.welcome.noTypesTitle'}}</div>
    <p>{{t 'wh.index.welcome.noTypesMessage'}}</p>
  </div>
{{else}}

  {{#unless isEditingMessage}}

    <article>{{to-markdown settings.siteMessage}}</article>
    {{#if session.isOwner}}
      <button type="button" class="btn btn-neutral btn-small icon icon-pencil" {{ action "editMessage" }}> {{t 'wh.index.welcome.edit'}}</button>
    {{/if}}

  {{else}}
    <div class="wy-control-group">
      {{markdown-editor value=settings.siteMessage session=session}}
    </div>

    <button type="button" class="btn btn-info btn-small icon icon-ok-sign" {{ action "saveMessage" settings}}> {{t 'wh.index.welcome.save'}}</button>
    <button type="button" class="btn btn-link btn-small icon icon-remove-sign wy-text-danger" {{ action "cancelMessage" }}> {{t 'wh.index.welcome.cancel'}}</button>

  {{/unless}}

  <hr>

  {{webhook-blog}}

  {{#if session.serverMessages}}
    <section>
      <h2>{{t 'wh.index.history'}}</h2>

      <table class="wy-table wy-table-bordered-rows full-width">
        <thead>
          <tr>
            <th>Type</th>
            <th>Message</th>
            <th>Date</th>
          </tr>
        </thead>
        <tbody>
          {{#each session.serverMessages}}
            <tr>
              <td>{{code}}</td>
              <td>{{message}}</td>
              <td>{{format-time timestamp}}</td>
{'fraction_non_alphanumeric': 0.2037914691943128, 'fraction_numerical': 0.0013540961408259986, 'mean_word_length': 2.75, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, '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': '5664069', 'n_tokens_mistral': 1030, 'n_tokens_neox': 960, 'n_words': 174}