root / snf-branding / synnefo_branding / settings.py @ 68a81d58
History | View | Annotate | Download (2.9 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 |
# You can replace any image by providing its absolute path
|
24 |
# example: 'https://synnefo.org/uploads/images/my_image.png'
|
25 |
# The service favicon
|
26 |
FAVICON_URL = getattr(settings, 'BRANDING_FAVICON_URL', |
27 |
IMAGE_MEDIA_URL+'favicon.ico')
|
28 |
# Logo used in Dashboard pages (Astakos)
|
29 |
DASHBOARD_LOGO_URL = getattr(settings, 'BRANDING_DASHBOARD_LOGO_URL', |
30 |
IMAGE_MEDIA_URL+'dashboard_logo.png')
|
31 |
# Logo used in Compute pages (Cyclades)
|
32 |
COMPUTE_LOGO_URL = getattr(settings, 'BRANDING_COMPUTE_LOGO_URL', |
33 |
IMAGE_MEDIA_URL+'compute_logo.png')
|
34 |
# Logo used in Console page for VM (Cyclades)
|
35 |
CONSOLE_LOGO_URL = getattr(settings, 'BRANDING_CONSOLE_LOGO_URL', |
36 |
IMAGE_MEDIA_URL+'console_logo.png')
|
37 |
# Logo used in Storage pages (Pithos)
|
38 |
STORAGE_LOGO_URL = getattr(settings, 'BRANDING_STORAGE_LOGO_URL', |
39 |
IMAGE_MEDIA_URL+'storage_logo.png')
|
40 |
|
41 |
## Copyright options
|
42 |
######################
|
43 |
|
44 |
# If True, Copyright message will appear at the footer of the Compute and
|
45 |
# Dashboard UI
|
46 |
SHOW_COPYRIGHT = getattr(settings, 'BRANDING_SHOW_COPYRIGHT', False) |
47 |
copyright_period_default = '2011-%s' % (datetime.datetime.now().year)
|
48 |
# Defaults to 2011-<current_year>
|
49 |
COPYRIGHT_PERIOD = getattr(settings, 'BRANDING_COPYRIGHT_PERIOD', |
50 |
copyright_period_default) |
51 |
# Formal company name appears in copyright message
|
52 |
COMPANY_NAME_FORMAL = getattr(settings, 'BRANDING_COMPANY_NAME_FORMAL', |
53 |
'GRNET S.A.')
|
54 |
copyright_message_default = 'Copyright (c) %s %s' % (COPYRIGHT_PERIOD,
|
55 |
COMPANY_NAME_FORMAL) |
56 |
# Defaults to Copyright (c) 2011-<current_year> GRNET S.A.
|
57 |
COPYRIGHT_MESSAGE = getattr(settings, 'BRANDING_COPYRIGHT_MESSAGE', |
58 |
copyright_message_default) |
59 |
|
60 |
|
61 |
## Footer links
|
62 |
######################
|
63 |
|
64 |
# If True, "about", "contact" and "support" links are displayed at the footer
|
65 |
# of the Compute UI
|
66 |
SHOW_FOOTER_LINKS = getattr(settings, 'BRANDING_SHOW_FOOTER_LINKS', True) |
67 |
SERVICE_ABOUT_URL = getattr(settings, 'BRANDING_SERVICE_ABOUT_URL', |
68 |
'https://synnefo.org/about')
|
69 |
SERVICE_CONTACT_URL = getattr(settings, 'BRANDING_SERVICE_CONTACT_URL', |
70 |
'https://synnefo.org/contact')
|
71 |
SERVICE_SUPPORT_URL = getattr(settings, 'BRANDING_SERVICE_SUPPORT_URL', |
72 |
'https://synnefo.org/support')
|
73 |
|
74 |
SYNNEFO_JS_LIB_VERSION = get_component_version('app')
|