Files
ubicloud/views/project/user-tabbar.erb
Enes Cakir 26a6df0506 Move tokens to a separate page and add to the sidebar
As a customer, I’m not likely to visit the `Users` page to create a
personal access token.

Let’s make it easier to find by moving it to its own page and adding it
to the sidebar.
2025-01-10 23:15:07 +03:00

11 lines
397 B
Plaintext

<% tabs = [
(["User Management", @project_data[:path] + "/user"] if has_project_permission("Project:user")),
(
if has_project_permission("Project:viewaccess")
["Access Control", @project_data[:path] + "/user/access-control", request.path.include?("/user/access-control")]
end
)
]
tabs.compact! %>
<%== render("components/tabbar", locals: { tabs: tabs }) if tabs.length >= 2 %>