src/hdalab/context_processors.py
author rougeronj
Mon, 29 Dec 2014 17:27:43 +0100
changeset 415 bf2db1849560
parent 394 4911075b6000
permissions -rw-r--r--
Add user if user_if is given in the template
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
394
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents:
diff changeset
     1
import hdalab
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents:
diff changeset
     2
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents:
diff changeset
     3
def version(request):
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents:
diff changeset
     4
    return { 'VERSION': hdalab.get_version() }