feat: enforce Europe/Istanbul timezone, fix PWA image proxy, add Monday weekly login sync, and standardize English routes
This commit is contained in:
parent
56274f479b
commit
93f0bcb7a1
16 changed files with 851 additions and 175 deletions
|
|
@ -10,7 +10,7 @@
|
|||
<span class="dot-separator">•</span>
|
||||
<span id="syllabusSyncStatus">
|
||||
<% if (lastSynced) { %>
|
||||
<%= t('syllabus.syncedLabel') %> <%= new Date(lastSynced).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }) %>
|
||||
<%= t('syllabus.syncedLabel') %> <%= formatTime(lastSynced) %>
|
||||
<% } else { %>
|
||||
<%= t('syllabus.notSynced') %>
|
||||
<% } %>
|
||||
|
|
@ -73,7 +73,7 @@
|
|||
<!-- Day Tabs -->
|
||||
<div class="day-tabs" id="dayTabs">
|
||||
<% [1, 2, 3, 4, 5].forEach(function(d) { %>
|
||||
<% const isToday = (new Date().getDay() === d); %>
|
||||
<% const isToday = (istanbulDayOfWeek === d); %>
|
||||
<button
|
||||
type="button"
|
||||
class="day-tab-btn <%= activeDay === d ? 'active' : '' %>"
|
||||
|
|
@ -109,7 +109,7 @@
|
|||
<div class="subject-title"><%= l.subject %></div>
|
||||
<div class="teacher-info">
|
||||
<% if (l.teacherPhoto) { %>
|
||||
<img src="<%= l.teacherPhoto %>" class="teacher-thumb" alt="<%= l.teacher %>" onerror="this.style.display='none'">
|
||||
<img src="<%= proxyImage(l.teacherPhoto) %>" class="teacher-thumb" alt="<%= l.teacher %>" onerror="this.style.display='none'">
|
||||
<% } %>
|
||||
<span class="teacher-name"><%= l.teacher %></span>
|
||||
</div>
|
||||
|
|
@ -138,7 +138,7 @@
|
|||
<tr>
|
||||
<th class="grid-time-th"><%= t('syllabus.periodHeader') %></th>
|
||||
<% [1, 2, 3, 4, 5].forEach(function(d) { %>
|
||||
<% const isToday = (new Date().getDay() === d); %>
|
||||
<% const isToday = (istanbulDayOfWeek === d); %>
|
||||
<th class="<%= isToday ? 'grid-today-th' : '' %>">
|
||||
<%= DAY_NAMES[d] %>
|
||||
<% if (isToday) { %><span class="grid-today-pill"><%= t('syllabus.todayBadge') %></span><% } %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue