Skip to content

Commit

Permalink
Version form: warn about deactivating a version (#280)
Browse files Browse the repository at this point in the history
Closes #275
  • Loading branch information
stsewd authored Feb 26, 2024
1 parent f389333 commit 480e374
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions readthedocsext/theme/templates/projects/version_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ <h2 class="ui medium dividing header">
</div>

<div class="content">
{% if version.active %}
<div class="ui warning message">
{% trans 'Deactivating a version will result in the deletion of its documentation.' %}
</div>
{% endif %}

<form class="ui inline form" method="post" action=".">
{% csrf_token %}

Expand Down

0 comments on commit 480e374

Please sign in to comment.