cartodb/app/views/admin/client_applications/api_key.html.erb
2020-06-15 10:58:47 +08:00

46 lines
1.5 KiB
Plaintext

<% content_for(:page_title) do %>
Your API keys |
<% end %>
<%= content_for(:js) do %>
<script type="text/javascript">
var username = "<%= current_user.username %>";
var config = <%= safe_js_object frontend_config %>;
var user_data = <%= safe_js_object current_user.data.to_json %>;
var upgrade_url = "<%= current_user.upgrade_url(request.protocol) %>";
var mobile_enabled = "<%= current_user.mobile_sdk_enabled? %>";
var dashboardNotifications = <%= safe_js_object @dashboard_notifications.to_json %>;
var organization_notifications = <%= safe_js_object @organization_notifications.to_json %>;
</script>
<%= javascript_include_tag 'common', 'common_vendor', 'api_keys_new' %>
<% end %>
<%= content_for(:css) do %>
<% if @has_engine_enabled %>
<%= stylesheet_link_tag 'api_keys_new', :media => 'all' %>
<% else %>
<%= editor_stylesheet_link_tag 'api_keys', :media => 'all' %>
<% end %>
<% end %>
<%= render :partial => 'shared/flash_message' %>
<%= render :partial => 'admin/shared/trial_notification' %>
<div class="FormAccount-Section u-inner">
<%= render :partial => 'admin/shared/pages_subheader' %>
<div class="CDB-Text FormAccount-Content">
<%= render :partial => 'admin/shared/api_keys_subheader' %>
<% if @has_engine_enabled %>
<div class="api-keys js-api-keys-new"></div>
<% else %>
<%= render :partial => 'api_keys_cta' %>
<% end %>
</div>
</div>
<%= render 'admin/shared/new_private_footer' %>