We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc2e6c7 commit 6436f32Copy full SHA for 6436f32
server/collab/templates/list.html
@@ -9,7 +9,7 @@
9
<thead>
10
<tr>
11
{% for header in headers %}
12
- <th>{{ header }}</th>
+ <th>{{ header|title }}</th>
13
{% endfor %}
14
<th></th>
15
</tr>
server/templatetags.py
@@ -0,0 +1,10 @@
1
+from django import template
2
+
3
+register = template.Library()
4
5
6
+@register.filter
7
+def lookup(d, key):
8
+ if key not in d:
+ return None
+ return d[key]
0 commit comments