46 lines
2.0 KiB
Plaintext
46 lines
2.0 KiB
Plaintext
|
<% content_for(:page_title) do %>
|
||
|
<%= current_user.organization.name %> |
|
||
|
<% end %>
|
||
|
<%= content_for(:js) do %>
|
||
|
<script type="text/javascript">
|
||
|
var username = "<%= current_user.username %>";
|
||
|
var type = "oauth";
|
||
|
var config = <%= safe_js_object frontend_config %>;
|
||
|
var organization_data = {
|
||
|
base_url: "<%= CartoDB.url(self, 'create_organization_user', user: current_user) %>", // HACK!!!
|
||
|
id: "<%= current_user.organization.id %>",
|
||
|
quota_in_bytes: <%= current_user.organization.quota_in_bytes %>,
|
||
|
seats: <%= current_user.organization.seats %>,
|
||
|
viewer_seats: <%= current_user.organization.viewer_seats %>,
|
||
|
assigned_seats: <%= current_user.organization.assigned_seats %>,
|
||
|
assigned_viewer_seats: <%= current_user.organization.assigned_viewer_seats %>,
|
||
|
owner: { id: "<%= current_user.organization.owner.id %>" },
|
||
|
admins: <%= current_user.organization.users.select(&:org_admin).map { |u| { id: u.id } }.to_json.html_safe %>,
|
||
|
signup_enabled: <%= current_user.organization.auth_username_password_enabled || current_user.organization.auth_google_enabled %>
|
||
|
};
|
||
|
var user_data = <%= safe_js_object current_user.data.to_json.html_safe %>;
|
||
|
var upgrade_url = "<%= current_user.upgrade_url(request.protocol) %>";
|
||
|
var organization_notifications = <%= safe_js_object @organization_notifications.to_json %>;
|
||
|
</script>
|
||
|
<%= javascript_include_tag 'common', 'common_vendor', 'organization' %>
|
||
|
<% end %>
|
||
|
<%= content_for(:css) do %>
|
||
|
<%= stylesheet_link_tag 'organization.css', :media => 'all' %>
|
||
|
<% end %>
|
||
|
|
||
|
<%= render :partial => 'shared/flash_message' %>
|
||
|
|
||
|
<div class="FormAccount-Section u-inner">
|
||
|
<%= render :partial => 'admin/shared/pages_subheader' %>
|
||
|
|
||
|
<div class="FormAccount-Content">
|
||
|
<%= render :partial => 'admin/shared/org_subheader' %>
|
||
|
|
||
|
<div class="FormAccount-container FormAccount-container--short">
|
||
|
<div class="FormAccount js-orgUsersList"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<%= render 'admin/shared/new_private_footer' %>
|