<commit_before>{include file='header.tpl'}
{include file='navbar.tpl'}

<h2 class="ui header">
  {$TITLE}
</h2>

<div class="ui stackable grid" id="alerts">
  <div class="ui centered row">
    <div class="ui six wide tablet four wide computer column">
      {include file='user/navigation.tpl'}
    </div>
    <div class="ui ten wide tablet twelve wide computer column">
      <div class="ui segment">
        <h3 class="ui header">
          {$ALERTS}
          <div class="res right floated">
            <form action="{$DELETE_ALL_LINK}" method="post" style="display:inline">
              <input type="hidden" name="token" value="{$TOKEN}">
              <button type="submit" class="ui mini negative button">{$DELETE_ALL}</button>
            </form>
          </div>
        </h3>
        {if isset($ERROR)}
          <div class="ui negative message">{$ERROR}</div>
        {/if}
        <div class="ui middle aligned relaxed selection list">
          {nocache}
            {if count($ALERTS_LIST)}
              {foreach from=$ALERTS_LIST key=name item=alert}
                <a class="item" href="{$alert->view_link}" data-toggle="popup">
                  <i class="angle right icon"></i>
                  <div class="content">
                    <div class="description">
                      {if $alert->read eq 0}
                        <strong>{$alert->content}</strong>
                      {else}
                        {$alert->content}
                      {/if}
                      <br />{$alert->date_nice}
                    </div>
                  </div><commit_msg>Don't show "Delete All" button on alerts page if they have no alerts<commit_after>{include file='header.tpl'}
{include file='navbar.tpl'}

<h2 class="ui header">
  {$TITLE}
</h2>

<div class="ui stackable grid" id="alerts">
  <div class="ui centered row">
    <div class="ui six wide tablet four wide computer column">
      {include file='user/navigation.tpl'}
    </div>
    <div class="ui ten wide tablet twelve wide computer column">
      <div class="ui segment">
        <h3 class="ui header">
          {$ALERTS}
          {if count($ALERTS_LIST)}
          <div class="res right floated">
            <form action="{$DELETE_ALL_LINK}" method="post" style="display:inline">
              <input type="hidden" name="token" value="{$TOKEN}">
              <button type="submit" class="ui mini negative button">{$DELETE_ALL}</button>
            </form>
          </div>
          {/if}
        </h3>
        {if isset($ERROR)}
          <div class="ui negative message">{$ERROR}</div>
        {/if}
        <div class="ui middle aligned relaxed selection list">
          {nocache}
            {if count($ALERTS_LIST)}
              {foreach from=$ALERTS_LIST key=name item=alert}
                <a class="item" href="{$alert->view_link}" data-toggle="popup">
                  <i class="angle right icon"></i>
                  <div class="content">
                    <div class="description">
                      {if $alert->read eq 0}
                        <strong>{$alert->content}</strong>
                      {else}
                        {$alert->content}
                      {/if}
                      <br />{$alert->date_nice}
                    </div>
                  </div>
{'fraction_non_alphanumeric': 0.14860774818401937, 'fraction_numerical': 0.003026634382566586, 'mean_word_length': 1.7656903765690377, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 73, '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': '5146055', 'n_tokens_mistral': 918, 'n_tokens_neox': 894, 'n_words': 238}