2024-04-06 13:25:13 +08:00
|
|
|
<div class="SideMenu CDB-Text CDB-Size-medium">
|
|
|
|
<div class="SideMenu-type">
|
|
|
|
<ul class="SideMenu-list">
|
|
|
|
<li class="SideMenu-typeItem"><a href="<%= CartoDB.url(self, 'profile_user', user: current_user) %>" class="SideMenu-typeLink <%= 'is-selected' if "#{params[:controller]}_#{params[:action]}" == "admin/users_profile" %>">Profile</a></li>
|
|
|
|
<li class="SideMenu-typeItem"><a href="<%= CartoDB.url(self, 'account_user', user: current_user) %>" class="SideMenu-typeLink <%= 'is-selected' if "#{params[:controller]}_#{params[:action]}" == "admin/users_account" %>">Account</a></li>
|
|
|
|
<li class="SideMenu-typeItem"><a href="<%= CartoDB.url(self, 'app_permissions_user', user: current_user) %>" class="SideMenu-typeLink">App permissions</a></li>
|
|
|
|
<% if !Cartodb.config[:cartodb_com_hosted].present? && !current_user.organization.present? %>
|
|
|
|
<li class="SideMenu-typeItem"><a href="<%= current_user.plan_url(request.protocol) %>" class="SideMenu-typeLink">Billing</a></li>
|
|
|
|
<% end %>
|
|
|
|
<% if current_user.organization_admin? %>
|
2024-04-09 12:00:11 +08:00
|
|
|
<li class="SideMenu-typeItem"><a href="<%= CartoDB.url(self, current_user.organization_owner? ? 'organization_settings' : 'organization', user: current_user) %>" class="SideMenu-typeLink <%= 'is-selected' if ["admin/organizations", "admin/organization", "admin/organization_users"].include?("#{params[:controller]}") %>" class="SideMenu-typeLink">组织设置</a></li>
|
2024-04-06 13:25:13 +08:00
|
|
|
<% end %>
|
|
|
|
<% pages_subheader_instance.links(self).each do |link| %>
|
|
|
|
<li class="SideMenu-typeItem"><a href="<%= link.path %>" class="SideMenu-typeLink <%= 'is-selected' if [link.controller].include?("#{params[:controller]}") %>" class="SideMenu-typeLink"><%= link.text %></a></li>
|
|
|
|
<% end %>
|
|
|
|
<span class="SideMenu-separator"></span>
|
2024-04-09 12:00:11 +08:00
|
|
|
<li class="SideMenu-typeItem"><a href="<%= CartoDB.url(self, 'api_key_credentials', user: current_user) %>" class="SideMenu-typeLink <%= 'is-selected' if "#{params[:controller]}" == "admin/client_applications" || "#{params[:controller]}" == "carto/admin/mobile_apps" %>">开发设置</a></li>
|
2024-04-06 13:25:13 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|