<commit_before>{# Dashboard for logged in user #}
{% extends 'base.html' %}
{% set page_title = _('Dashboard') %}

{% block body %}

<h2>{{ _("Dashboard") }}</h2>
<p>{{ _("List of available repositories.") }}</p>

<table class="table table-striped">
  <thead>
    <tr>
      <th><i class="icon-circle muted"></i></th>
      <th>Clone string</th>
      <th>Actions</th>
    </tr>
  </thead>

  <tbody>
    {% if repos %}
      {% for item in repos -%}
        <tr>
          <td>{% if not item.state.get('autoprocess') %}<i class="icon-circle text-error"></i>{% else %} <i class="icon-circle text-success">{% endif %}</td>
          <td><a href="{{ url_for('project.fonts', project_id = item.id )}}">{{item.clone}}</a></td>
          <td>
          {% if item.yaml %}
            <span class="muted">OK</span>
            {% else %}
            Setup this repo <a href="{{ url_for('project.fonts', project_id = item.id )}}">now</a>  
          {% endif %}
          </td>
        </tr>
      {%- endfor %}
    {% else %}
    <tr>
	    <td></td>
        <td><p class="muted">{{ _("List of available repositories is empty") }}</td>
	    <td><p><a href='/settings'><button class="btn btn-primary">Add some now</button></a>{# TODO make this link less brittle #}</p></td>
    </tr> 
    {% endif %}
  </tbody>
</table>

{% endblock %}<commit_msg>Adding button to setup to end of dashboard table<commit_after>{# Dashboard for logged in user #}
{% extends 'base.html' %}
{% set page_title = _('Dashboard') %}

{% block body %}

<h2>{{ _("Dashboard") }}</h2>
<p>{{ _("List of available repositories.") }}</p>

<table class="table table-striped">
  <thead>
    <tr>
      <th><i class="icon-circle muted"></i></th>
      <th>Clone string</th>
      <th>Actions</th>
    </tr>
  </thead>

  <tbody>
    {% if repos %}
      {% for item in repos -%}
        <tr>
          <td>{% if not item.state.get('autoprocess') %}<i class="icon-circle text-error"></i>{% else %} <i class="icon-circle text-success">{% endif %}</td>
          <td><a href="{{ url_for('project.fonts', project_id = item.id )}}">{{item.clone}}</a></td>
          <td>
          {% if item.yaml %}
            <span class="muted">OK</span>
            {% else %}
            Setup this repo <a href="{{ url_for('project.fonts', project_id = item.id )}}">now</a>  
          {% endif %}
          </td>
        </tr>
      {%- endfor %}
	    <tr>
		    <td></td>
	        <td></td>
		    <td><p><a href='/settings'><button class="btn btn-primary">Add some more</button></a>{# TODO make this link less brittle #}</p></td>
	    </tr> 
    {% else %}
    <tr>
	    <td></td>
        <td><p class="muted">{{ _("List of available repositories is empty") }}</td>
	    <td><p><a href='/settings'><button class="btn btn-primary">Add some now</button></a>{# TODO make this link less brittle #}</p></td>
    </tr> 
    {% endif %}
  </tbody>
</table>

{% endblock %}
{'fraction_non_alphanumeric': 0.22844383373411198, 'fraction_numerical': 0.0013740982480247338, 'mean_word_length': 2.454329774614472, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 121, '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': '5144210', 'n_tokens_mistral': 1089, 'n_tokens_neox': 990, 'n_words': 247}