Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Adds ACL categories to command pages #197

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/reference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ def complexity
command["complexity"]
end

def aclcats
command["aclcats"]
end

def to_param
name.downcase.gsub(" ", "-")
end
Expand Down
7 changes: 7 additions & 0 deletions views/commands/name.haml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
%li
%a(href="#{url}")= name

- unless @command.aclcats.empty?
%h2 ACL categories

%ul
- @command.aclcats.each do |category|
%li #{category}

%h2
Related commands

Expand Down