root / snf-branding / synnefo_branding / settings.py @ 9ab3c6a3
History | View | Annotate | Download (2.4 kB)
1 |
from django.conf import settings |
---|---|
2 |
from synnefo.util.version import get_component_version |
3 |
import datetime |
4 |
|
5 |
## Service and company names/urls
|
6 |
######################
|
7 |
|
8 |
SERVICE_NAME = getattr(settings, 'BRANDING_SERVICE_NAME', 'Synnefo') |
9 |
SERVICE_URL = getattr(settings, 'BRANDING_SERVICE_URL', |
10 |
'http://www.synnefo.org/')
|
11 |
COMPANY_NAME = getattr(settings, 'BRANDING_COMPANY_NAME', 'GRNET') |
12 |
COMPANY_URL = getattr(settings, 'BRANDING_COMPANY_URL', |
13 |
'https://www.grnet.gr/en/')
|
14 |
|
15 |
|
16 |
## Images
|
17 |
######################
|
18 |
|
19 |
# The default path to the folder that contains all branding images
|
20 |
IMAGE_MEDIA_URL = getattr(settings, 'BRANDING_IMAGE_MEDIA_URL', |
21 |
settings.MEDIA_URL+'branding/images/')
|
22 |
|
23 |
# The service favicon
|
24 |
FAVICON_URL = getattr(settings, 'BRANDING_FAVICON_URL', |
25 |
IMAGE_MEDIA_URL+'favicon.ico')
|
26 |
# Logo used in Dashboard pages (Astakos)
|
27 |
DASHBOARD_LOGO_URL = getattr(settings, 'BRANDING_DASHBOARD_LOGO_URL', |
28 |
IMAGE_MEDIA_URL+'dashboard_logo.png')
|
29 |
# Logo used in Compute pages (Cyclades)
|
30 |
COMPUTE_LOGO_URL = getattr(settings, 'BRANDING_COMPUTE_LOGO_URL', |
31 |
IMAGE_MEDIA_URL+'compute_logo.png')
|
32 |
# Logo used in Console page for VM (Cyclades)
|
33 |
CONSOLE_LOGO_URL = getattr(settings, 'BRANDING_CONSOLE_LOGO_URL', |
34 |
IMAGE_MEDIA_URL+'console_logo.png')
|
35 |
# Logo used in Storage pages (Pithos)
|
36 |
STORAGE_LOGO_URL = getattr(settings, 'BRANDING_STORAGE_LOGO_URL', |
37 |
IMAGE_MEDIA_URL+'storage_logo.png')
|
38 |
|
39 |
## Copyright and footer options
|
40 |
######################
|
41 |
|
42 |
# If True, Copyright message will appear at the footer of the Compute and
|
43 |
# Dashboard UI
|
44 |
SHOW_COPYRIGHT = getattr(settings, 'BRANDING_SHOW_COPYRIGHT', True) |
45 |
copyright_period_default = '2011-%s' % (datetime.datetime.now().year)
|
46 |
copyright_message_default = 'Copyright (c) %s %s' % (copyright_period_default,
|
47 |
COMPANY_NAME) |
48 |
# Defaults to Copyright (c) 2011-<current_year> GRNET.
|
49 |
COPYRIGHT_MESSAGE = getattr(settings, 'BRANDING_COPYRIGHT_MESSAGE', |
50 |
copyright_message_default) |
51 |
SYNNEFO_VERSION = get_component_version('common')
|
52 |
|
53 |
# Footer message appears above Copyright message at the Compute templates
|
54 |
# and the Dashboard UI. Accepts html tags
|
55 |
FOOTER_EXTRA_MESSAGE = '<p>The project is co-financed by Greece and the \
|
56 |
European Union.</p>'
|