mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-07 07:11:58 +08:00
Currently, herb/formatter has at least 4 bugs the prevent us from switching to it (https://github.com/marcoroth/herb/issues 476, 477, 478, and 479). This includes manual fixes for each issue. herb/formatter also introduces a rubocop violation for the Layout/AssignmentIndentation cop. This disables that cop.
11 lines
365 B
Text
11 lines
365 B
Text
<% tabs = [
|
|
(["User Management", @project.path + "/user"] if has_project_permission("Project:user")),
|
|
(
|
|
if has_project_permission("Project:viewaccess")
|
|
["Access Control", @project.path + "/user/access-control", request.path.include?("/user/access-control")]
|
|
end
|
|
)
|
|
]
|
|
tabs.compact! %>
|
|
|
|
<%== part("components/tabbar", tabs:) if tabs.length >= 2 %>
|