fix(biochem): аватарка через LS.renderNavAvatar на всех страницах модуля
Заменил ручное ava.textContent=initials на LS.renderNavAvatar(ava, user) в biochem.html / -library / -reactions / -properties. biochem-pathways.html уже был корректен. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -369,7 +369,7 @@ if (!user) location.href = '/login';
|
||||
const nav = document.getElementById('nav-user');
|
||||
const ava = document.getElementById('nav-avatar');
|
||||
if (nav) nav.textContent = user?.name?.split(' ')[0] || 'Пользователь';
|
||||
if (ava) ava.textContent = (user?.name||'LS').split(' ').slice(0,2).map(w=>w[0]?.toUpperCase()||'').join('')||'LS';
|
||||
LS.renderNavAvatar(ava, user);
|
||||
if (isAdmin) document.getElementById('btn-admin').style.display = '';
|
||||
if (isTeacher) document.getElementById('btn-classes').style.display = '';
|
||||
LS.showBoardIfAllowed();
|
||||
|
||||
Reference in New Issue
Block a user