mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
31 lines
777 B
Python
31 lines
777 B
Python
# Copyright (c) 2015 Ansible, Inc.
|
|
# All Rights Reserved.
|
|
|
|
from django.views.generic.base import TemplateView, RedirectView
|
|
from django.conf import settings
|
|
|
|
class IndexView(TemplateView):
|
|
|
|
template_name = 'ui/index.html'
|
|
|
|
def get_context_data(self, **kwargs):
|
|
context = super(IndexView, self).get_context_data(**kwargs)
|
|
context['UI_LIVE_UPDATES_ENABLED'] = settings.UI_LIVE_UPDATES_ENABLED
|
|
# Add any additional context info here.
|
|
return context
|
|
|
|
index = IndexView.as_view()
|
|
|
|
class PortalRedirectView(RedirectView):
|
|
|
|
permanent = True
|
|
url = '/#/portal'
|
|
|
|
portal_redirect = PortalRedirectView.as_view()
|
|
|
|
class MigrationsNotran(TemplateView):
|
|
|
|
template_name = 'ui/installing.html'
|
|
|
|
migrations_notran = MigrationsNotran.as_view()
|