mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 06:01:25 -03:30
22 lines
516 B
Python
22 lines
516 B
Python
# Copyright (c) 2015 Ansible, Inc.
|
|
# All Rights Reserved.
|
|
|
|
from django.views.generic.base import TemplateView, RedirectView
|
|
|
|
class IndexView(TemplateView):
|
|
|
|
template_name = 'ui/index.html'
|
|
|
|
def get_context_data(self, **kwargs):
|
|
context = super(IndexView, self).get_context_data(**kwargs)
|
|
# Add any additional context info here.
|
|
return context
|
|
|
|
index = IndexView.as_view()
|
|
|
|
class PortalRedirectView(RedirectView):
|
|
|
|
url = '/#/portal'
|
|
|
|
portal_redirect = PortalRedirectView.as_view()
|