mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 11:40:05 -03:30
Compare commits
2 Commits
pr/14282
...
serve-ansi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e77f89e01f | ||
|
|
68f56570ae |
@@ -290,7 +290,7 @@ TEMPLATES = [
|
|||||||
],
|
],
|
||||||
'builtins': ['awx.main.templatetags.swagger'],
|
'builtins': ['awx.main.templatetags.swagger'],
|
||||||
},
|
},
|
||||||
'DIRS': [os.path.join(BASE_DIR, 'templates'), os.path.join(BASE_DIR, 'ui', 'build'), os.path.join(BASE_DIR, 'ui', 'public')],
|
'DIRS': [os.path.join(BASE_DIR, 'templates'), '/var/lib/awx/public/static/controller/', os.path.join(BASE_DIR, 'ui', 'build'), os.path.join(BASE_DIR, 'ui', 'public')],
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
import React, { useCallback, useEffect, useState } from 'react';
|
import React, { useCallback, useEffect, useState } from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
import { t } from '@lingui/macro';
|
import { t, Trans } from '@lingui/macro';
|
||||||
import {
|
import {
|
||||||
|
Banner,
|
||||||
Card,
|
Card,
|
||||||
PageSection,
|
PageSection,
|
||||||
Tabs,
|
Tabs,
|
||||||
Tab,
|
Tab,
|
||||||
TabTitleText,
|
TabTitleText,
|
||||||
} from '@patternfly/react-core';
|
} from '@patternfly/react-core';
|
||||||
|
import { InfoCircleIcon } from '@patternfly/react-icons';
|
||||||
|
|
||||||
import useRequest from 'hooks/useRequest';
|
import useRequest from 'hooks/useRequest';
|
||||||
import { DashboardAPI } from 'api';
|
import { DashboardAPI } from 'api';
|
||||||
@@ -69,6 +71,15 @@ function Dashboard() {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<Banner variant="info">
|
||||||
|
<Trans>
|
||||||
|
<p>
|
||||||
|
<InfoCircleIcon /> A tech preview of the new Ansible Automation
|
||||||
|
Platform user interface can be found{' '}
|
||||||
|
<a href="/controller/dashboard">here</a>.
|
||||||
|
</p>
|
||||||
|
</Trans>
|
||||||
|
</Banner>
|
||||||
<ScreenHeader
|
<ScreenHeader
|
||||||
streamType="all"
|
streamType="all"
|
||||||
breadcrumbConfig={{ '/home': t`Dashboard` }}
|
breadcrumbConfig={{ '/home': t`Dashboard` }}
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ class IndexView(TemplateView):
|
|||||||
|
|
||||||
template_name = 'index.html'
|
template_name = 'index.html'
|
||||||
|
|
||||||
|
class ControllerView(TemplateView):
|
||||||
|
|
||||||
|
template_name = 'index_controller.html'
|
||||||
|
|
||||||
|
|
||||||
class MigrationsNotran(TemplateView):
|
class MigrationsNotran(TemplateView):
|
||||||
|
|
||||||
@@ -27,4 +31,4 @@ class MigrationsNotran(TemplateView):
|
|||||||
|
|
||||||
app_name = 'ui'
|
app_name = 'ui'
|
||||||
|
|
||||||
urlpatterns = [re_path(r'^$', IndexView.as_view(), name='index'), re_path(r'^migrations_notran/$', MigrationsNotran.as_view(), name='migrations_notran')]
|
urlpatterns = [re_path(r'^$', IndexView.as_view(), name='index'), re_path(r'^controller/.*$', ControllerView.as_view(), name='index'), re_path(r'^migrations_notran/$', MigrationsNotran.as_view(), name='migrations_notran')]
|
||||||
|
|||||||
Reference in New Issue
Block a user