Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
1dd25986
Commit
1dd25986
authored
Feb 25, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
router: show last update timestamp alongside countdown timer
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
574357b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
route-web-api.py
router/route-web-api.py
+6
-2
No files found.
router/route-web-api.py
View file @
1dd25986
...
...
@@ -271,7 +271,7 @@ HTML_PAGE = """\
<div id="list-direct"></div>
</div>
</div>
<p class="note"><span id="countdown">Изменения применятся в течение 5 минут</span> · <a href="/swagger">API docs</a></p>
<p class="note"><span id="
last-update"></span><span id="
countdown">Изменения применятся в течение 5 минут</span> · <a href="/swagger">API docs</a></p>
<script>
const $ = id => document.getElementById(id);
...
...
@@ -412,7 +412,11 @@ refresh();
function poll() {
fetch('/api/active').then(r => r.json()).then(d => {
if (d.updated) nextUpdate = (d.updated + INTERVAL) * 1000;
if (d.updated) {
nextUpdate = (d.updated + INTERVAL) * 1000;
const ts = new Date(d.updated * 1000);
$('last-update').textContent = 'Обновлено ' + ts.toLocaleString('ru') + ' · ';
}
tick();
}).catch(() => {
el.textContent = 'Изменения применятся в течение 5 минут';
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment