Statistics
| Branch: | Tag: | Revision:

root / snf-branding / synnefo_branding / settings.py @ 6dd9cc0b

History | View | Annotate | Download (2 kB)

1 9d889386 Olga Brani
from django.conf import settings
2 a2110608 Olga Brani
from synnefo.util.version import get_component_version
3 9d889386 Olga Brani
import datetime
4 9d889386 Olga Brani
5 68a81d58 Olga Brani
## Service and company names/urls
6 68a81d58 Olga Brani
######################
7 ffdc2320 Olga Brani
8 ffdc2320 Olga Brani
SERVICE_NAME = getattr(settings, 'BRANDING_SERVICE_NAME', 'Synnefo')
9 ffdc2320 Olga Brani
SERVICE_URL = getattr(settings, 'BRANDING_SERVICE_URL', 
10 ffdc2320 Olga Brani
                                          'http://www.synnefo.org/')
11 68a81d58 Olga Brani
COMPANY_NAME = getattr(settings, 'BRANDING_COMPANY_NAME', 'GRNET')
12 68a81d58 Olga Brani
COMPANY_URL = getattr(settings, 'BRANDING_COMPANY_URL', 
13 68a81d58 Olga Brani
                                          'https://www.grnet.gr/en/')
14 68a81d58 Olga Brani
15 68a81d58 Olga Brani
16 68a81d58 Olga Brani
## Images
17 68a81d58 Olga Brani
######################
18 68a81d58 Olga Brani
19 68a81d58 Olga Brani
# The default path to the folder that contains all branding images
20 68a81d58 Olga Brani
IMAGE_MEDIA_URL = getattr(settings, 'BRANDING_IMAGE_MEDIA_URL', 
21 68a81d58 Olga Brani
                                                  settings.MEDIA_URL+'branding/images/')
22 6e28eafd Olga Brani
23 68a81d58 Olga Brani
# The service favicon 
24 68a81d58 Olga Brani
FAVICON_URL = getattr(settings, 'BRANDING_FAVICON_URL',
25 68a81d58 Olga Brani
                                     IMAGE_MEDIA_URL+'favicon.ico')
26 68a81d58 Olga Brani
# Logo used in Dashboard pages (Astakos)
27 68a81d58 Olga Brani
DASHBOARD_LOGO_URL = getattr(settings, 'BRANDING_DASHBOARD_LOGO_URL', 
28 68a81d58 Olga Brani
                                                          IMAGE_MEDIA_URL+'dashboard_logo.png')
29 68a81d58 Olga Brani
# Logo used in Compute pages (Cyclades)
30 68a81d58 Olga Brani
COMPUTE_LOGO_URL = getattr(settings, 'BRANDING_COMPUTE_LOGO_URL',
31 68a81d58 Olga Brani
                                                   IMAGE_MEDIA_URL+'compute_logo.png')
32 68a81d58 Olga Brani
# Logo used in Console page for VM (Cyclades)
33 68a81d58 Olga Brani
CONSOLE_LOGO_URL = getattr(settings, 'BRANDING_CONSOLE_LOGO_URL',
34 68a81d58 Olga Brani
                                                   IMAGE_MEDIA_URL+'console_logo.png')
35 68a81d58 Olga Brani
# Logo used in Storage pages (Pithos)
36 68a81d58 Olga Brani
STORAGE_LOGO_URL = getattr(settings, 'BRANDING_STORAGE_LOGO_URL',
37 68a81d58 Olga Brani
                                                   IMAGE_MEDIA_URL+'storage_logo.png') 
38 ffdc2320 Olga Brani
39 68a81d58 Olga Brani
## Copyright options
40 68a81d58 Olga Brani
######################
41 9d889386 Olga Brani
42 68a81d58 Olga Brani
# If True, Copyright message will appear at the footer of the Compute and 
43 68a81d58 Olga Brani
# Dashboard UI 
44 68a81d58 Olga Brani
SHOW_COPYRIGHT = getattr(settings, 'BRANDING_SHOW_COPYRIGHT', False)
45 68a81d58 Olga Brani
copyright_period_default = '2011-%s' % (datetime.datetime.now().year)
46 6e28eafd Olga Brani
copyright_message_default = 'Copyright (c) %s %s' % (copyright_period_default, 
47 6e28eafd Olga Brani
                                                                                         COMPANY_NAME)
48 6e28eafd Olga Brani
# Defaults to Copyright (c) 2011-<current_year> GRNET.
49 9d889386 Olga Brani
COPYRIGHT_MESSAGE = getattr(settings, 'BRANDING_COPYRIGHT_MESSAGE', 
50 68a81d58 Olga Brani
                                                    copyright_message_default)
51 a2110608 Olga Brani
 
52 a2110608 Olga Brani
SYNNEFO_JS_LIB_VERSION = get_component_version('app')