summaryrefslogtreecommitdiff
path: root/static/website/templates
diff options
context:
space:
mode:
Diffstat (limited to 'static/website/templates')
-rw-r--r--static/website/templates/ajax-duration.html4
-rw-r--r--static/website/templates/ajax-tutorials.html4
-rw-r--r--static/website/templates/index.html8
3 files changed, 11 insertions, 5 deletions
diff --git a/static/website/templates/ajax-duration.html b/static/website/templates/ajax-duration.html
index 22fe04f..e02fcff 100644
--- a/static/website/templates/ajax-duration.html
+++ b/static/website/templates/ajax-duration.html
@@ -1,14 +1,14 @@
{% load count_tags %}
<div>
<div id="minutes">
- <option value="None">min</option>
+ <option value="">min</option>
{% for i in minutes|inc|get_range %}
<option value="{{ i }}-{{ i|inc }}">{{ i }}-{{ i|inc }} </option>
{% endfor %}
</div> <!-- /#minutes -->
<div id="seconds">
- <option value="None">sec</option>
+ <option value="">sec</option>
{% for i in seconds|get_range:"0,10" %}
<option value="{{ i }}-{{ i|add:"10" }}">{{ i }}-{{ i|add:"10" }}</option>
{% endfor %}
diff --git a/static/website/templates/ajax-tutorials.html b/static/website/templates/ajax-tutorials.html
index c19fe3c..62192bb 100644
--- a/static/website/templates/ajax-tutorials.html
+++ b/static/website/templates/ajax-tutorials.html
@@ -1,5 +1,5 @@
-<option value="None">Select a Tutorial</option>
+<option value="">Select a Tutorial</option>
{% for tutorial in tutorials %}
- <option value="{{ tutorial.tutorial_name }}">{{ tutorial.tutorial_name }}</option>
+ <option value="{{ tutorial.tutorial }}">{{ tutorial.tutorial }}</option>
{% endfor %}
<option value="General">General</option>
diff --git a/static/website/templates/index.html b/static/website/templates/index.html
index 7f4a497..63890fd 100644
--- a/static/website/templates/index.html
+++ b/static/website/templates/index.html
@@ -10,7 +10,13 @@
{% for category in categories %}
<div>
<div class="thumbnail">
- <img src="{% static 'website/images/' %}{{ category }}.jpg">
+ {% with file=category|get_category_image %}
+ {% if file %}
+ <img src="{% static category|get_category_image %}">
+ {% else %}
+ <div class="category-title">{{category}}</div>
+ {% endif %}
+ {% endwith %}
<div class="caption">
<small class="category">
{{ category }}