fnp
/
redakcja.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
eab54556cacc7e839c80ac92a31690af1ce5c957
[redakcja.git]
/
apps
/
toolbar
/
templatetags
/
toolbar_tags.py
1
from django import template
2
3
from toolbar import models
4
5
6
register = template.Library()
7
8
9
@register.inclusion_tag('toolbar/toolbar.html')
10
def toolbar():
11
groups = models.ButtonGroup.objects.all()
12
return {'groups': groups}
13
14
15
@register.filter
16
def keycode(value):
17
return ord(str(value).upper())
18