feat: ajoute affichage auteur pour toutes les versions
This commit is contained in:
@@ -96,6 +96,11 @@ export default function VersionComparison({versionData, versionCompare}) {
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
<Box sx={{mt: 1}}>
|
||||||
|
<Typography sx={{textDecoration: 'underline'}} variant='caption' color='success'>
|
||||||
|
@{main.user_created?.split('-')[0] || 'Système'}
|
||||||
|
</Typography>
|
||||||
|
</Box>
|
||||||
</Paper>
|
</Paper>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid xs={6} sx={{width: '100%'}}>
|
<Grid xs={6} sx={{width: '100%'}}>
|
||||||
@@ -121,11 +126,12 @@ export default function VersionComparison({versionData, versionCompare}) {
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
{!outdated && session?.user && (
|
<Box sx={{mt: 1}}>
|
||||||
<>
|
<Typography sx={{textDecoration: 'underline'}} variant='caption' color='primary'>
|
||||||
<Box>
|
@{versionData.user_created?.split('-')[0] || 'Système'}
|
||||||
<Typography sx={{textDecoration: 'underline'}} variant='caption' color='primary'>@{versionData.user_created.split('-')[0]}</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
{!outdated && session?.user && (
|
||||||
<Box sx={{
|
<Box sx={{
|
||||||
display: 'flex', alignItems: 'center', justifyContent: 'space-between', mt: 1
|
display: 'flex', alignItems: 'center', justifyContent: 'space-between', mt: 1
|
||||||
}}
|
}}
|
||||||
@@ -156,7 +162,6 @@ export default function VersionComparison({versionData, versionCompare}) {
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
</Paper>
|
</Paper>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Reference in New Issue
Block a user