Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions readthedocsext/theme/templates/projects/edit_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
href="{% url "projects_translations" project.slug %}">{% trans "Translations" %}</a>
<a class="item {% block project_domains_active %}{% endblock project_domains_active %}"
href="{% url "projects_domains" project.slug %}">{% trans "Domains" %}</a>
<a class="item {% block project_search_active %}{% endblock project_search_active %}"
href="{% url "projects_search_settings" project.slug %}">{% trans "Search" %}</a>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{% extends "projects/project_edit_base.html" %}

{% load trans from i18n %}
{% load crispy from crispy_forms_tags %}

{% block title %}
{% trans "Search" %}
{% endblock title %}

{% block project_search_active %}
active
{% endblock project_search_active %}
{% block project_edit_content_header %}
{% trans "Search" %}
{% endblock project_edit_content_header %}

{% block project_edit_content %}
<form class="ui form" method="post" action=".">
{% csrf_token %}
{{ form|crispy }}
<input class="ui primary button" type="submit" value="{% trans "Update" %}">
</form>
{% endblock project_edit_content %}

{% block project_edit_sidebar_help_topics %}
{% include "includes/elements/link.html" with url="https://docs.readthedocs.com/platform/stable/server-side-search/index.html" text="Server-side search documentation" is_external=True class="item" %}
{% endblock project_edit_sidebar_help_topics %}
Loading