feat: ajoute affichage auteur pour toutes les versions

This commit is contained in:
2025-07-23 14:30:09 +04:00
parent 3bb26c7239
commit f7dcc837d2
+10 -5
View File
@@ -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>