cartodb/app/views/admin/shared/_pages_subheader.html.erb

19 lines
1.8 KiB
Plaintext
Raw Normal View History

2020-06-15 10:58:47 +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" %>">个人资料</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" %>">账户</a></li>
<li class="SideMenu-typeItem"><a href="<%= CartoDB.url(self, 'connected_apps_user', user: current_user) %>" class="SideMenu-typeLink">APP应用</a></li>
<% if current_user.organization_admin? %>
<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>
<% 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>
<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>
</ul>
</div>
</div>