Skip to content

Commit 0366e7a

Browse files
authored
Filetreediff: expose it for users that have it enabled (#564)
We don't expose it to all the users yet, but we want to expose it for those that we already enabled it on the Django Admin.
1 parent b3ed3cf commit 0366e7a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

readthedocsext/theme/templates/projects/addons_form.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
<a class="item" data-tab="notifications">{% trans "Notifications" %}</a>
4949
<a class="item" data-tab="analytics">{% trans "Analytics" %}</a>
5050
<a class="item" data-tab="docdiff">{% trans "Visual diff" %}</a>
51+
<a class="item" data-tab="filetreediff">{% trans "File tree diff" %}</a>
5152
<a class="item" data-tab="link-previews">{% trans "Link previews" %}</a>
5253
<a class="item" data-tab="hotkeys">{% trans "Hotkeys" %}</a>
5354
<a class="item" data-tab="advanced">{% trans "Advanced" %}</a>
@@ -98,6 +99,13 @@
9899
</div>
99100
{% endblock addons_docdiff %}
100101

102+
{% block addons_filetreediff %}
103+
<div class="ui tab" data-tab="filetreediff">
104+
{{ form.filetreediff_enabled | as_crispy_field }}
105+
{{ form.filetreediff_ignored_files | as_crispy_field }}
106+
</div>
107+
{% endblock addons_filetreediff %}
108+
101109
{% block addons_link_previews %}
102110
<div class="ui tab" data-tab="link-previews">
103111
{{ form.linkpreviews_enabled | as_crispy_field }}

0 commit comments

Comments
 (0)