Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit d0c51abe authored by BAIRE Anthony's avatar BAIRE Anthony

list ToS agreements on the user profile page

parent e6805e9a
......@@ -822,6 +822,10 @@ class UserUpdate(LoginRequiredMixin, SuccessMessageMixin, UpdateView):
kwargs['ssh_fingerprint'] = fingerprint
if token:
kwargs['token'] = token
kwargs['agreements'] = UserAgreement.objects.filter(
return super(UserUpdate, self).get_context_data(**kwargs)
......@@ -111,7 +111,7 @@
<div class="clearfix mb-3 pb-3">
<div class="clearfix border-bottom mb-3 pb-3">
......@@ -134,10 +134,22 @@
{% if agreements %}
<div class="clearfix mb-3 pb-3">
<h5>Terms of Service</h5>
<p>You agreed to the following Terms of Service:
{% for agreement in agreements %}
<li><a href="{{agreement.tos.url}}">Version {{agreement.tos.version}}</a> <i>agreed on {{agreement.created_at}}</i></li>
{% endfor %}
{% endif %}
{% endblock %}
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