mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
further tags
This commit is contained in:
parent
c50705a2dc
commit
8301254f57
@ -6,12 +6,13 @@ import { formatDateString } from '@util/dates';
|
||||
import Detail from './Detail';
|
||||
import { SummaryFieldUser } from '../../types';
|
||||
|
||||
function UserDateDetail({ label, date, user }) {
|
||||
function UserDateDetail({ label, date, user, dataCy = null}) {
|
||||
const dateStr = formatDateString(date);
|
||||
const username = user ? user.username : '';
|
||||
return (
|
||||
<Detail
|
||||
label={label}
|
||||
dataCy={dataCy}
|
||||
value={
|
||||
user ? (
|
||||
<Trans>
|
||||
|
||||
@ -104,11 +104,13 @@ function HostDetail({ host, i18n, onUpdateHost }) {
|
||||
date={created}
|
||||
label={i18n._(t`Created`)}
|
||||
user={created_by}
|
||||
dataCy="host-created-by"
|
||||
/>
|
||||
<UserDateDetail
|
||||
label={i18n._(t`Last Modified`)}
|
||||
user={modified_by}
|
||||
date={modified}
|
||||
dataCy="host-last-modified-by"
|
||||
/>
|
||||
<VariablesDetail
|
||||
value={host.variables}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user