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