Commit 8c0dbb8a authored by David Seaward's avatar David Seaward

move subscription link from view (required) to menu (optional)

parent a4904919
......@@ -69,7 +69,7 @@ SPDX-License-Identifier: AGPL-3.0
{% for limit in limits %}
<tr>
<th>{{ limit.service_label() }}</th>
<th class="row_header">{{ limit.service_label() }}</th>
<td>{{ limit.active_label() }}</td>
<td title="{{ limit.endpoint_full_label() }}">{{ limit.endpoint_short_label() }}</td>
<td>{{ limit.credit_label() }}</td>
......@@ -80,15 +80,6 @@ SPDX-License-Identifier: AGPL-3.0
</table>
<h2>{% trans "Profile management" %}</h2>
<ul>
{% if DEBUG_CHANGE_PASSWORD %}
<li><a href="{% url 'auth_password_change' %}">{% trans "Change password" %}</a></li>
<li><a href="{{ link_subscription }}" target="_blank">{% trans "Manage subscriptions" %}</a></li>
{% endif %}
</ul>
<h2>{% trans "Downloads" %}</h2>
<ul>
......@@ -103,6 +94,14 @@ SPDX-License-Identifier: AGPL-3.0
{% endif %}
</ul>
{% if DEBUG_CHANGE_PASSWORD %}
<h2>{% trans "Profile management" %}</h2>
<ul>
<li><a href="{% url 'auth_password_change' %}">{% trans "Change password" %}</a></li>
</ul>
{% endif %}
</article>
<nav>
......
......@@ -32,7 +32,6 @@ def userlimit(request):
"site_provider_link": settings.SITE_PROVIDER_LINK,
"limits": limits,
"has_limit": has_limit,
"link_subscription": settings.LINK_SUBSCRIPTION,
"link_profile_ordered_dict": settings.LINK_PROFILE_ORDERED_DICT,
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment