% hidden = defined?(hidden) ? hidden : false access_icon = defined?(access_icon) ? access_icon : nil published_status_icon = defined?(published_status_icon) ? published_status_icon : nil published_status_label = defined?(published_status_label) ? published_status_label : nil editable_class = "" case node_type when "section" editable_class = "non-editable" unless @modifiable_sections.include?(node) else editable_class = "non-editable" unless defined?(parent) && @modifiable_sections.include?(parent) end node_type_class = node_type == "section" && node.root? ? 'root' : '' %>
<%= icon %>
<%= h(node.name) %>
|
<%= status_icon(:hidden) if hidden %>HIDDEN | <%= access_icon ? access_icon : " " %> |
<%= published_status_icon ? published_status_icon : " " %>
<%= published_status_label if published_status_label %>
|