Files
wekan/client/components/main/pageSidebar.js
T
Lauri Ojansivu daaf563910 Docs: implemented designs move to docs/Features, filed the way the menu is.
A design that describes what WeKan already DOES belongs with the feature it
describes, not in the folder for things being proposed. Fifteen docs move:

  Design/Accessibility.md      -> Features/Accessibility/Accessibility-Improvements.md
  Design/Original-Positions.md -> Features/Board/Original-Positions.md
  Design/Page/*                -> Features/Page/*   (thirteen pages that exist)
  Design/AdminPanelProblems.md -> Features/Admin-Panel/Problems/Design.md

What stays in docs/Design is what the folder is for: the principles
(Design-Principles, Monkey-Proof-Software), the comparisons, the roadmap
(Multiverse), and the proposals not yet built (Multitenancy, Autoupdate).

The Admin Panel Problems design is new and covers six changes - summaries, the
per-actor tally, IPv4/IPv6 columns, an API report, a per-address login tally,
and blocking with increasing delays. Three are shipped and three are planned;
it is filed under the feature because the pane exists, with each planned item
marked so it can become plain description as it lands.

Every reference in the repository is rewritten - 152 files, including the CSS
comments that point at the table-page design, which a first pass over .md and
.js alone missed. Two suites asserted the old paths and now assert the new
ones. A moved doc whose links nobody fixed is worse than one nobody moved.

Thanks to xet7 !
2026-08-16 15:15:01 +03:00

35 lines
997 B
JavaScript

import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
import {
isPageSidebarOpen,
closePageSidebar,
} from '/client/lib/pageSidebar';
import { pageSidebarTemplate, hasPageSidebar } from '/models/lib/pageSidebar';
// The shared page sidebar. docs/Features/Page/Header.md
Template.pageSidebar.helpers({
// Drawn at all only where there is something to put in it: a panel that opens
// empty is worse than no panel.
hasPageSidebar() {
return hasPageSidebar(FlowRouter.getRouteName());
},
isSidebarOpen() {
return isPageSidebarOpen();
},
controlsTemplate() {
return pageSidebarTemplate(FlowRouter.getRouteName());
},
// A themed thing outside a board, like the All Boards sidebar: without a
// `.board-color-*` ancestor a `.sidebar-btn` is white text on light grey.
themeClass() {
return 'board-color-belize';
},
});
Template.pageSidebar.events({
'click .js-close-page-sidebar'(evt) {
evt.preventDefault();
closePageSidebar();
},
});