-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addons: allow users to opt-in into the beta addons (#213)
* Addons: allow users to opt-in into the beta addons Show a small form to the user where they can enable/disable the new beta addons on their project. * Closes #212 * Requires readthedocs/readthedocs.org#10733 * Add beta label on the menu item * Upate the notification and ask for feedback
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% extends "projects/project_edit_base.html" %} | ||
|
||
{% load i18n %} | ||
{% load crispy_forms_tags %} | ||
|
||
{% block title %}{{ project.name }} - {% trans "Addons" %}{% endblock %} | ||
|
||
{% block project_addons_active %}active{% endblock %} | ||
{% block project_edit_content_header %}{% trans "Addons" %}{% endblock %} | ||
|
||
{% block project_edit_sidebar_help_topics %} | ||
{% include "includes/elements/link.html" with url="https://blog.readthedocs.com/addons-flyout-menu-beta/" text="Blog post: Addons flyout menu beta" is_external=True class="item" %} | ||
{% endblock project_edit_sidebar_help_topics %} | ||
|
||
{% block project_edit_content %} | ||
<div class="ui info message"> | ||
{% blocktrans trimmed %} | ||
We are in beta! Give it a try now and share your feedback with us by <a href="https://github.com/readthedocs/addons" target="_blank">opening an issue</a>. | ||
{% endblocktrans %} | ||
</div> | ||
|
||
<form class="ui form" | ||
method="post" | ||
action="{% url 'projects_addons' project_slug=project.slug %}"> | ||
{% csrf_token %} | ||
{{ form|crispy }} | ||
|
||
<input class="ui primary button" type="submit" value="{% trans "Save" %}"> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters