Revision 7fb14dbb snf-common/synnefo/lib/context_processors.py

b/snf-common/synnefo/lib/context_processors.py
33 33
    CB_LOCATION = getattr(settings, 'CLOUDBAR_LOCATION')
34 34
    CB_COOKIE_NAME = getattr(settings, 'CLOUDBAR_COOKIE_NAME',
35 35
            'okeanos_account')
36
    CB_ACTIVE_SERVICE = getattr(settings, 'CLOUDBAR_ACTIVE_SERVICE',
37
            'cloud')
38 36
    CB_SERVICES_URL = getattr(settings, 'CLOUDBAR_SERVICES_URL')
39 37
    CB_MENU_URL = getattr(settings, 'CLOUDBAR_MENU_URL')
40 38
    CB_HEIGHT = getattr(settings, 'CLOUDBAR_HEIGHT',
......
46 44
    <script type="text/javascript">
47 45
        var CLOUDBAR_LOCATION = "%(location)s";
48 46
        var CLOUDBAR_COOKIE_NAME = "%(cookie_name)s";
49
        var CLOUDBAR_ACTIVE_SERVICE = "%(active_service)s";
50 47
        var GET_SERVICES_URL = "%(services_url)s";
51 48
        var GET_MENU_URL = "%(menu_url)s";
52 49
        var CLOUDBAR_HEIGHT = '%(height)s';
......
65 62
        }
66 63
    </style>
67 64
""" % {'location': CB_LOCATION,
68
       'active_service': CB_ACTIVE_SERVICE,
69 65
       'cookie_name': CB_COOKIE_NAME,
70 66
       'services_url': CB_SERVICES_URL,
71 67
       'menu_url': CB_MENU_URL,
......
78 74
        'CLOUDBAR_ACTIVE': CB_ACTIVE,
79 75
        'CLOUDBAR_LOCATION': CB_LOCATION,
80 76
        'CLOUDBAR_COOKIE_NAME': CB_COOKIE_NAME,
81
        'CLOUDBAR_ACTIVE_SERVICE': CB_ACTIVE_SERVICE,
82 77
        'CLOUDBAR_SERVICES_URL': CB_SERVICES_URL,
83 78
        'CLOUDBAR_MENU_URL': CB_MENU_URL,
84 79
        'CLOUDBAR_CODE': CB_CODE

Also available in: Unified diff