diff --git a/src/templates/profile.html b/src/templates/profile.html index e9eb808..852b429 100644 --- a/src/templates/profile.html +++ b/src/templates/profile.html @@ -8,6 +8,7 @@
{% if current_user.uploads %} +

Your uploads

{% for item in current_user.uploads %}
@@ -21,16 +22,35 @@ {{ item.name }}

Download + class="btn btn-primary" target="_self">Download
{% endfor %} - - {% else %} -

No images available.

{% endif %} +
+

Your purchases

+
+ {% for purchase in current_user.purchases %} +
+
+
+ {{ purchase.item.name }} +

+ {{ purchase.item.name }} by {{ purchase.item.uploader.name }} +

+ Download +
+
+
+ {% endfor %} +
+
{% else %}

Log in to view your profile.

{% endif %}