-
Notifications
You must be signed in to change notification settings - Fork 73
/
error.html.erb
38 lines (34 loc) · 1.13 KB
/
error.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title><%= yield(:title).try(:strip).try(:presence) || 'We are sorry, but something went wrong' %></title>
<%- admin_domain = Account.is_admin_domain?(request.internal_host) -%>
<%- master_domain = Account.is_master_domain?(request.internal_host) -%>
<%- site_account ||= Account.master -%>
<%= rails_asset_url_tag %>
<%= stylesheet_link_tag 'error' -%>
<%= render 'provider/analytics' if admin_domain %>
</head>
<body>
<div id="wrapper">
<div id="content">
<% if admin_domain || master_domain %>
<%= render partial: 'provider/logo' %>
<% else %>
<%= render partial: 'shared/logo', locals: { site_account: site_account } %>
<% end %>
<%= yield %>
</div>
<% if admin_domain || master_domain %>
<div id='footer'>
<ul>
<%= render 'provider/footer_powered_by_part' %>
</ul>
</div>
<% else %>
<%= render partial: 'shared/footer', locals: { site_account: site_account } %>
<% end %>
</div>
</body>
</html>