Add scrape time to footer #77

Merged
krzysiej merged 1 commits from feature/display-scrape-time into master 2026-03-05 08:35:14 +01:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit c16ab192ed - Show all commits

View File

@@ -76,6 +76,8 @@ class ScrapeWebsite extends Command
$output->writeln('Update prices - DONE'); $output->writeln('Update prices - DONE');
$output->writeln('COMMAND - DONE'); $output->writeln('COMMAND - DONE');
file_put_contents('templates/lastscrape.html.twig', date('Y-m-d H:i:s'));
return Command::SUCCESS; return Command::SUCCESS;
} }

View File

@@ -1,9 +1,12 @@
<div class="container"> <div class="container">
<footer class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top"> <footer class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
<div class="col-md-4 d-flex align-items-center"> <div class="col-md-4 d-flex align-items-center">
<span class="mb-3 mb-md-0 text-body-secondary">© 2025 Company, Inc</span> <span class="mb-md-0 text-body-secondary">© 2025 Company, Inc</span>
<a class="align-items-center text-decoration-none" data-bs-theme-value="light">☀️ Light</a> <a class="align-items-center text-decoration-none" data-bs-theme-value="light">☀️ Light</a>
<a class="align-items-center text-decoration-none" data-bs-theme-value="dark">🌕 Dark</a> <a class="align-items-center text-decoration-none" data-bs-theme-value="dark">🌕 Dark</a>
</div> </div>
<div class="col-md-4 text-end text-muted">
{{ include('lastscrape.html.twig', ignore_missing: true) }}
</div>
</footer> </footer>
</div> </div>