Skip to content

16AA-Milsim/discourse-orbat

Repository files navigation

TODO

  • Implement some join date sorting order?
  • Underline users as we hover over them in ORBAT to show they are clickable?
  • Remove the extra 1px margin on the inside of nodes, between the top border and the list of names? If it is there still.
  • Implement member count.
  • Implement ORBAT light theme.

Configuration

  • orbat_enabled toggles the plugin on or off from the admin panel.
  • orbat_admin_only limits the ORBAT page and data endpoint to admins.
  • Within the orbat_json configuration, the rankPriority array controls rank ordering (highest first). Members are ordered by the group names listed in each node’s select.any/select.all, then by rankPriority, then by join date, then alphabetically. To sort by rank only (ignoring group order) for a specific node, set select.sort to "rank" on that node. Nodes also accept marginLeft and marginRight values (negative values reduce spacing) to add extra horizontal spacing.
  • Top level nodes can be split into custom sections by adding display.rootSections inside the JSON configuration. Each section entry accepts a prefixes array (matching the first segment of the code, for example "1" or "2"), optional title/subtitle text, and an optional layout hash (for example { "type": "row" }). Any nodes whose prefixes are not listed fall back to a final catch-all section, so new structures appear automatically below existing sections.

About

Displays the 16AA ORBAT on discourse

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors