mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
Client side of CARDS_LOADING=lazy. In lazy mode each list's cardsWithLimit subscribes to boardCardsWindow for just the cards it renders (growing with the infinite-scroll limit) and to boardListCardCount for the total; showSpinner uses that server count to decide whether more cards remain, since minimongo now holds only the loaded window. Default 'all' mode is unchanged (helpers short-circuit on isLazyCards()). Adds Admin Panel / Features — a new admin section (route /admin-features, nav entry, adminFeatures template) intended as the home for optional / performance / future tier-gated capabilities. First control: "Card loading" (all | lazy), which writes the cardsLoading Setting; it mirrors, and is overridden on startup by, the CARDS_LOADING env var. Includes an experimental-note (counters/WIP limits and the Calendar/Table/Gantt views reflect only loaded cards; reload boards after change) and the i18n keys.
48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
template(name="settingHeaderBar")
|
|
h1.header-setting-menu
|
|
span {{_ 'admin-panel'}}
|
|
|
|
.setting-header-btns.left
|
|
if currentUser
|
|
a.setting-header-btn.settings(class=isSettingsActive href="{{pathFor 'setting'}}")
|
|
span.emoji-icon
|
|
i.fa.fa-cog
|
|
span {{_ 'settings'}}
|
|
|
|
a.setting-header-btn.people(class=isPeopleActive href="{{pathFor 'people'}}")
|
|
span.emoji-icon
|
|
i.fa.fa-users
|
|
span {{_ 'people'}}
|
|
|
|
a.setting-header-btn.informations(class=isFeaturesActive href="{{pathFor 'admin-features'}}")
|
|
span.emoji-icon
|
|
i.fa.fa-flask
|
|
span {{_ 'features'}}
|
|
|
|
a.setting-header-btn.informations(class=isAdminReportsActive href="{{pathFor 'admin-reports'}}")
|
|
span.emoji-icon
|
|
i.fa.fa-file-text-o
|
|
span {{_ 'reports'}}
|
|
|
|
a.setting-header-btn.informations(class=isAttachmentsActive href="{{pathFor 'attachments'}}")
|
|
span.emoji-icon
|
|
i.fa.fa-paperclip
|
|
span {{_ 'attachments'}}
|
|
|
|
a.setting-header-btn.informations(class=isTranslationActive href="{{pathFor 'translation'}}")
|
|
span.emoji-icon
|
|
i.fa.fa-globe
|
|
span {{_ 'translation'}}
|
|
|
|
a.setting-header-btn.informations(class=isInformationActive href="{{pathFor 'information'}}")
|
|
span.emoji-icon
|
|
i.fa.fa-info-circle
|
|
span {{_ 'info'}}
|
|
|
|
else
|
|
a.setting-header-btn.js-log-in(
|
|
title="{{_ 'log-in'}}")
|
|
span.emoji-icon
|
|
i.fa.fa-sign-in
|
|
span {{_ 'log-in'}}
|