<commit_before>{% extends "base.html" %}
{% load staticfiles i18n  %}

{% block title %}beyondthehost - {% trans "Domains" %}{% endblock title %}</title>

{% block page_title %}{% trans "Domains" %}{% endblock page_title %}

{% block extra_css %}
{% endblock %}

{% block content %}

<p><a class="btn btn-primary" href="{% url "domains-create" %}"><span class="glyphicon glyphicon-plus"></span> {% trans "New domain" %}</a></p>
<dl class="dl-horizontal">
{% for domain in object_list %}
  
   <dt><a href="{{ domain.get_absolute_url }}">{{ domain.name }}</a></dt>
   <dd style="border-bottom: 1px solid #eee; margin-bottom: 1em;">
     <div class="col-md-3">
     {% for subdomain in domain.subdomains.all %}
       <li>{{ subdomain }}</li>
     {% endfor %}
     </ul>
     </div>
     <div class="col-md-9">
       <a href="{{ domain.get_absolute_url }}"><span class="glyphicon glyphicon-pencil"></span> {% trans "Edit" %}</a><br />
       <a href="{{ domain.get_delete_url }}"><span class="glyphicon glyphicon-trash"></span> {% trans "Delete" %}</a>
     </div>
   </dd>
{% endfor %}
</dl>
<p><a class="btn btn-primary" href="{% url "domains-create" %}"><span class="glyphicon glyphicon-plus"></span> {% trans "New domain" %}</a></p>

{% endblock content %}<commit_msg>do not display more than one button when no domain is available<commit_after>{% extends "base.html" %}
{% load staticfiles i18n  %}

{% block title %}beyondthehost - {% trans "Domains" %}{% endblock title %}</title>

{% block page_title %}{% trans "Domains" %}{% endblock page_title %}

{% block extra_css %}
{% endblock %}

{% block content %}

<p><a class="btn btn-primary" href="{% url "domains-create" %}"><span class="glyphicon glyphicon-plus"></span> {% trans "New domain" %}</a></p>
<dl class="dl-horizontal">
{% for domain in object_list %}
  
   <dt><a href="{{ domain.get_absolute_url }}">{{ domain.name }}</a></dt>
   <dd style="border-bottom: 1px solid #eee; margin-bottom: 1em;">
     <div class="col-md-3">
       <ul>
         {% for subdomain in domain.subdomains.all %}<li>{{ subdomain }}</li>{% endfor %}
       </ul>
     </div>
     <div class="col-md-9">
       <a href="{{ domain.get_absolute_url }}"><span class="glyphicon glyphicon-pencil"></span> {% trans "Edit" %}</a><br />
       <a href="{{ domain.get_delete_url }}"><span class="glyphicon glyphicon-trash"></span> {% trans "Delete" %}</a>
     </div>
   </dd>
{% endfor %}
</dl>
{% if object_list|length %}
<p>
  <a class="btn btn-primary" href="{% url "domains-create" %}"><span class="glyphicon glyphicon-plus"></span> {% trans "New domain" %}</a>
</p>
{% endif %}
{% endblock content %}
{'fraction_non_alphanumeric': 0.22832260507383567, 'fraction_numerical': 0.004543733434305188, 'mean_word_length': 3.9291044776119404, 'pattern_counts': {'":': 0, '<': 78, '<?xml version=': 0, '>': 78, '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': '246977', 'n_tokens_mistral': 988, 'n_tokens_neox': 887, 'n_words': 231}