|
4 | 4 |
|
5 | 5 | {% block profile-admin-gold-edit %}active{% endblock %}
|
6 | 6 |
|
7 |
| -{% block title %} |
8 |
| -Gold Projects |
9 |
| -{% endblock %} |
| 7 | +{% block title %}{% trans "Gold Projects" %}{% endblock %} |
10 | 8 |
|
11 | 9 |
|
12 | 10 | {% block edit_content %}
|
13 | 11 |
|
14 |
| - <p class="empty"> |
| 12 | + <h3>{% trans "Gold Projects" %}</h3> |
| 13 | + <p> |
15 | 14 | {% blocktrans trimmed %}
|
16 |
| - <strong>Note:</strong> this is a legacy feature. |
17 |
| - New gold members cannot sponsor projects to be ad-free. |
| 15 | + Gold members may completely remove advertising for all visitors to their projects. |
18 | 16 | {% endblocktrans %}
|
19 | 17 | </p>
|
20 | 18 |
|
21 |
| - <p class="help_text"> |
22 |
| - {% trans "Choose projects that will have all promos removed, and extra features added to them. You get to pick one for every $5/mo you support Read the Docs with." %} |
23 |
| - </p> |
24 |
| - |
25 |
| - <h3> {% trans "Existing Projects" %} </h3> |
26 |
| - <p> |
27 |
| - {% blocktrans trimmed count projects=gold_user.num_supported_projects %} |
28 |
| - You can adopt one project with your subscription. |
29 |
| - {% plural %} |
30 |
| - You can adopt {{ projects }} projects with your subscription. |
31 |
| - {% endblocktrans %} |
32 |
| - </p> |
| 19 | + <ul class="donate-about"> |
| 20 | + <li>{% trans 'For small businesses or personal projects, we ask for $5 per month to remove ads from a project.' %}</li> |
| 21 | + <li>{% trans 'For corporate supported open source projects, we ask for a $50 membership in order to cover our support and operations costs.' %}</li> |
| 22 | + </ul> |
33 | 23 |
|
34 |
| - <ul> |
35 |
| - {% for project in projects %} |
| 24 | + <h3>{% trans 'Ad-free projects' %}</h3> |
| 25 | + <ul class="donate-about"> |
| 26 | + {% for project in projects %} |
36 | 27 | <li>
|
37 |
| - <a href="{{ project.get_absolute_url }}"> |
38 |
| - {{ project }} |
39 |
| - </a> |
40 |
| - (<a href="{% url "gold_projects_remove" project.slug %}">{% trans "Remove" %}</a>) |
| 28 | + <a href="{{ project.get_absolute_url }}">{{ project }}</a> |
| 29 | + <span>(<a href="{% url "gold_projects_remove" project.slug %}">{% trans "Remove Ad-Free Status" %}</a>)</span> |
41 | 30 | </li>
|
42 |
| - {% endfor %} |
| 31 | + {% empty %} |
| 32 | + <p>{% trans 'No projects are currently ad-free.' %}</p> |
| 33 | + {% endfor %} |
43 | 34 | </ul>
|
44 | 35 |
|
45 |
| - <h3>{% trans "Add a project" %}</h3> |
46 |
| - <p> |
47 |
| - {% trans "Choose which project you would like to add." %} |
48 |
| - </p> |
49 |
| - <form method="post" action=".">{% csrf_token %} |
50 |
| - {{ form.as_p }} |
| 36 | + <h3>{% trans "Make a project ad-free" %}</h3> |
| 37 | + {% if gold_user.num_supported_projects > projects|length %} |
| 38 | + <p> |
| 39 | + {% trans "Choose which project you would like to make ad-free." %} |
| 40 | + </p> |
| 41 | + <form method="post" action=".">{% csrf_token %} |
| 42 | + {{ form.as_p }} |
| 43 | + <p> |
| 44 | + <input type="submit" value="{% trans "Make Project Ad-Free" %}"> |
| 45 | + </p> |
| 46 | + </form> |
| 47 | + {% else %} |
51 | 48 | <p>
|
52 |
| - <input style="display: inline;" type="submit" value="{% trans "Submit" %}"> |
| 49 | + {% blocktrans trimmed with gold_level=gold_user.get_level_display gold_projects_count=gold_user.num_supported_projects %} |
| 50 | + You can't make any more projects ad-free with your current Gold membership of {{ gold_level }}. |
| 51 | + You can either increase the level of your membership or change which projects you make ad-free. |
| 52 | + {% endblocktrans %} |
53 | 53 | </p>
|
54 |
| - </form> |
| 54 | + {% endif %} |
55 | 55 |
|
56 | 56 | {% endblock %}
|
0 commit comments