From 663aff16b3c1c93fe40d596a60869131e3783ba4 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Wed, 14 Mar 2018 10:06:52 +0000 Subject: Add payment info for resources, and two more resources * Code Combat * Corey Schafer's Python tutorials playlist --- templates/main/info/resources.html | 41 +++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/main/info/resources.html b/templates/main/info/resources.html index 576d68ec..6e8a616d 100644 --- a/templates/main/info/resources.html +++ b/templates/main/info/resources.html @@ -21,6 +21,28 @@ if there's a great resource that you love and you don't see it on this page, feel free to submit a pull request!

+

+ Some resources aren't free - the below key will help you figure out whether you need to pay for + a resource or not. You can also hover them for more information on the payment (or tap them on + mobile) where available. +

+

+ + + + + Free + + + + + Payment Optional + + + + + Paid +

{% if categories is none %}
@@ -44,7 +66,24 @@ {% for item, data in category_data.resources.items() %}

- {{ item }}  
+ {% if data["payment_description"] %} + + {% else %} + + {% endif %} + + {% if data["payment"] == "optional" %} + + {% elif data["payment"] == "paid" %} + + {% else %} + + {% endif %} + + + {{ item }}   + +
{{ data.description }}

{% endfor %} -- cgit v1.2.3