ajout du numéro de version

This commit is contained in:
Esenjin 2025-02-16 13:45:38 +01:00
parent 13c54c5884
commit ad6bc3974f
2 changed files with 25 additions and 0 deletions

View File

@ -21,6 +21,21 @@ $stories = Stories::getAll();
<link rel="icon" type="image/png" href="../assets/images/site/favicon.png">
<?php endif; ?>
<link rel="stylesheet" href="../assets/css/main.css">
<style>
.version-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 8px;
background-color: var(--bg-tertiary);
color: var(--text-secondary);
text-align: center;
font-size: 0.8rem;
border-top: 1px solid var(--border-color);
z-index: 100;
}
</style>
</head>
<body>
<nav class="admin-nav">
@ -70,5 +85,14 @@ $stories = Stories::getAll();
<script src="../assets/js/admin.js"></script>
<link rel="stylesheet" href="../assets/css/dialog.css">
<script src="../assets/js/dialog.js"></script>
<?php
$version = file_exists(__DIR__ . '/../version.txt')
? trim(file_get_contents(__DIR__ . '/../version.txt'))
: 'version inconnue';
?>
<div class="version-banner">
Lectures d'Esenjin - v.<?= htmlspecialchars($version) ?>
</div>
</body>
</html>

1
version.txt Normal file
View File

@ -0,0 +1 @@
1.0.0