+
{% if profile.profile_pict %}
@@ -108,7 +108,7 @@
title="{% trans %}Profile{% endtrans %}" />
{% endif %}
-
+
{% if profile.profile_pict %}
@@ -136,104 +136,103 @@
- {% if user.memberships.filter(end_date=None).exists() or user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or user ==
- profile or user.is_in_group(settings.SITH_BAR_MANAGER_BOARD_GROUP) %}
- {# if the user is member of a club, he can view the subscription state #}
-
- {% if profile.is_subscribed %}
- {% if user == profile or user.is_root or user.is_board_member %}
-
- {{ user_subscription(profile) }}
-
- {% endif %}
- {% if user == profile or user.is_root or user.is_board_member or user.is_launderette_manager %}
-
- {# Shows tokens bought by the user #}
- {{ show_tokens(profile) }}
- {# Shows slots took by the user #}
- {{ show_slots(profile) }}
-
- {% endif %}
- {% else %}
-
- {% endif %}
- {% if profile.was_subscribed and (user == profile or user.can_read_subscription_history)%}
-
-
- {% endif %}
-
- {% if user.is_root or user.is_board_member %}
-
-
-
- {% if profile.gifts.exists() %}
- {% set gifts = profile.gifts.order_by("-date")|list %}
-
+ {% endif %}
+
+ {% if profile.was_subscribed and (user == profile or user.can_read_subscription_history)%}
-
- {% for gift in gifts %}
- - {{ gift }}
-
-
-
-
- {% endfor %}
-
+
+
+
+ {% trans %}Subscription start{% endtrans %} |
+ {% trans %}Subscription end{% endtrans %} |
+ {% trans %}Subscription type{% endtrans %} |
+ {% trans %}Payment method{% endtrans %} |
+
+
+ {% for sub in profile.subscriptions.all() %}
+
+ {{ sub.subscription_start }} |
+ {{ sub.subscription_end }} |
+ {{ sub.subscription_type }} |
+ {{ sub.get_payment_method_display() }} |
+
+ {% endfor %}
+
+
-
- {% else %}
-
{% trans %}No gift given yet{% endtrans %}
{% endif %}
-
+
+
+
+ {% if user.is_root or user.is_board_member %}
+
+ {% if profile.gifts.exists() %}
+ {% set gifts = profile.gifts.order_by("-date")|list %}
+
+
+
+
+
+ {% for gift in gifts %}
+ - {{ gift }}
+
+
+
+
+ {% endfor %}
+
+
+ {% else %}
+
{% trans %}No gift given yet{% endtrans %}
+ {% endif %}
+
{% endif %}
@@ -250,7 +249,7 @@
keys.push(e.keyCode);
if (keys.toString() == pattern) {
keys = [];
- $("#user_profile_pictures_bigone img").attr("src", "{{ static('core/img/yug.jpg') }}");
+ $("#big_picture img").attr("src", "{{ static('core/img/yug.jpg') }}");
}
if (keys.length == 6) {
keys.shift();
@@ -258,10 +257,10 @@
});
});
$(function () {
- $("#user_profile_pictures_thumbnails img").click(function () {
- $("#user_profile_pictures_bigone img").attr("src", $(this)[0].src);
- $("#user_profile_pictures_bigone img").attr("alt", $(this)[0].alt);
- $("#user_profile_pictures_bigone img").attr("title", $(this)[0].title);
+ $("#small_pictures img").click(function () {
+ $("#big_picture img").attr("src", $(this)[0].src);
+ $("#big_picture img").attr("alt", $(this)[0].alt);
+ $("#big_picture img").attr("title", $(this)[0].title);
})
});
$(function () {
diff --git a/core/templates/core/user_pictures.jinja b/core/templates/core/user_pictures.jinja
index ba98fc95..471aecda 100644
--- a/core/templates/core/user_pictures.jinja
+++ b/core/templates/core/user_pictures.jinja
@@ -21,7 +21,7 @@
{% if not p.is_moderated %}
diff --git a/sas/templates/sas/album.jinja b/sas/templates/sas/album.jinja
index ca3f7804..0d3be6dd 100644
--- a/sas/templates/sas/album.jinja
+++ b/sas/templates/sas/album.jinja
@@ -29,7 +29,7 @@