Revision 8f53cfa3 snf-cyclades-app/synnefo/ui/views.py

b/snf-cyclades-app/synnefo/ui/views.py
150 150
GROUP_PUBLIC_NETWORKS = getattr(settings, 'UI_GROUP_PUBLIC_NETWORKS', True)
151 151
GROUPED_PUBLIC_NETWORK_NAME = getattr(settings, 'UI_GROUPED_PUBLIC_NETWORK_NAME', 'Internet')
152 152

  
153
USER_CATALOG_URL = getattr(settings, 'UI_USER_CATALOG_URL', '/user_catalogs')
154
TRANSLATE_UUIDS = not getattr(settings, 'TRANSLATE_UUIDS', False)
155

  
153 156
def template(name, request, context):
154 157
    template_path = os.path.join(os.path.dirname(__file__), "templates/")
155 158
    current_template = template_path + name + '.html'
......
173 176
               'request': request,
174 177
               'current_lang': get_language() or 'en',
175 178
               'compute_api_url': json.dumps(COMPUTE_API_URL),
179
               'user_catalog_url': json.dumps(USER_CATALOG_URL),
180
               'translate_uuids': json.dumps(TRANSLATE_UUIDS),
176 181
                # update interval settings
177 182
               'update_interval': UPDATE_INTERVAL,
178 183
               'update_interval_increase': UPDATE_INTERVAL_INCREASE,

Also available in: Unified diff