2020-06-15 10:58:47 +08:00
|
|
|
<!DOCTYPE html>
|
2020-07-10 22:23:27 +08:00
|
|
|
<html lang="zh">
|
2020-06-15 10:58:47 +08:00
|
|
|
<head>
|
|
|
|
<meta charset='utf-8' />
|
|
|
|
<title><%= yield :page_title -%>快点</title>
|
|
|
|
<%= favicon_link_tag "favicons/favicon.ico" %>
|
|
|
|
<%= stylesheet_link_tag 'common_new.css', :media => 'all' %>
|
|
|
|
<%= yield :css -%>
|
|
|
|
<%= csrf_meta_tag -%>
|
|
|
|
<%= insert_google_tag_manager('primary') %>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<%= insert_google_tag_manager_no_script('primary') %>
|
|
|
|
<% if ( ( controller_name != "visualizations" && controller_name != "tables" ) || action_name != "show" ) %>
|
|
|
|
|
|
|
|
<% unless ( controller_name == 'users') %>
|
|
|
|
<%= render 'admin/shared/new_private_header' %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if current_user.notification.present? %>
|
|
|
|
<div class="CDB-Text FlashMessage">
|
|
|
|
<div class="u-inner">
|
|
|
|
<p class="FlashMessage-info"><%= raw current_user.notification %></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= render 'admin/shared/vis_header' %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= yield %>
|
|
|
|
<% if ( ( controller_name == "visualizations" || controller_name == "tables" ) && action_name == "show" ) %>
|
|
|
|
<%= render 'shared/olark' -%>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= insert_trackjs() -%>
|
|
|
|
<%= yield :js -%>
|
|
|
|
|
|
|
|
<% unless ( controller_name == 'users' ) %>
|
|
|
|
<%= javascript_include_tag 'header', 'footer' %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= render 'admin/shared/intercom' %>
|
|
|
|
</body>
|
|
|
|
</html>
|