Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
David Seaward
Keel - LDH Middleware
Commits
8c0dbb8a
Commit
8c0dbb8a
authored
Dec 18, 2017
by
David Seaward
Browse files
move subscription link from view (required) to menu (optional)
parent
a4904919
Changes
2
Hide whitespace changes
Inline
Side-by-side
limitmonitor/jinja2/limitmonitor/userlimit.html
View file @
8c0dbb8a
...
...
@@ -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>
...
...
limitmonitor/views.py
View file @
8c0dbb8a
...
...
@@ -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
,
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment