Introduce banner styles.
[wolnelektury.git] / src / annoy / places.py
1 from django.utils.translation import ugettext_lazy as _
2
3 PLACE_DEFINITIONS = [
4     ('top', _('Top of all pages.'), True),
5     ('book-page', _('Book page'), False),
6     ('book-text-intermission', _('Book text intermission'), False),
7     ('book-fragment-list', _('Next to list of book fragments.'), False),
8     ('blackout', _('Blackout'), True, (
9         ('full', _('Full screen')),
10 #        ('centre', _('Centre of screen')),
11         ('upper', _('Upper half of screen')),
12     )),
13 ]
14
15 PLACE_CHOICES = [p[:2] for p in PLACE_DEFINITIONS]
16
17 PLACES = {
18     p[0]: p[2]
19     for p in PLACE_DEFINITIONS
20 }
21
22
23 STYLES = []
24 for p in PLACE_DEFINITIONS:
25     if len(p) > 3:
26         STYLES.extend([
27             (f'{p[0]}_{s[0]}', s[1])
28             for s in p[3]
29         ])