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