hobo/hobo/seo/templates/hobo/seo_home.html

71 lines
1.8 KiB
HTML

{% extends "hobo/base.html" %}
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'seo-home' %}">Se</a>
{% endblock %}
{% block appbar %}
<h2>{% trans 'Indexing Settings' %}</h2>
<span class="actions">
<a
rel="popup" href="{% url 'robots-customize' %}">
{% if mode == 'customize' %}{% trans "Change custom settings" %}
{% else %}{% trans 'Use custom settings' %}{% endif %}
</a>
<a
{% if mode == 'disallow' %}class="disabled"{% endif %}
href="{% url 'robots-disallow' %}">
{% trans 'Do not allow indexing' %}
</a>
<a
{% if mode == 'allow' %}class="disabled"{% endif %}
href="{% url 'robots-allow' %}">
{% trans 'Allow indexing' %}
</a>
</span>
{% endblock %}
{% block content %}
<div class="infonotice">
{% blocktrans %}
Robots are programs that automatically traverse web sites.
Web site owners can use a <tt>robots.txt</tt> file to give
instructions about their site.
{% endblocktrans %}
</div>
{% if mode == 'allow' %}
<div class="successnotice">
{% trans "Web Robots are currently allowed." %}
</div>
{% endif %}
{% if mode == 'disallow' %}
<div class="warningnotice">
{% trans "Web Robots are currently not allowed." %}
</div>
{% endif %}
{% if mode == 'customize' or mode == 'disallow' %}
<div class="section padded">
<span>{% trans "Contents of robots.txt file:" %}</span>
<pre>{{ robots_txt }}</pre>
</div>
{% endif %}
{% if mode == 'customize' or mode == 'allow' %}
<div class="section padded">
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<div class="buttons">
<button class="submit-button">{% trans "Save" %}</button>
</div>
</form>
</div>
{% endif %}
{% endblock %}