2018-07-05 09:26:48 +08:00
|
|
|
<header class='discourse' data-embed-state='error'>
|
2016-12-14 03:37:37 +08:00
|
|
|
<h3><%= t 'embed.error' %></h3>
|
2018-11-14 15:03:02 +08:00
|
|
|
<%= link_to(image_tag(SiteSetting.site_logo_url, class: 'logo'), Discourse.base_url) %>
|
2016-12-14 03:37:37 +08:00
|
|
|
<div class='clearfix'></div>
|
|
|
|
</header>
|
|
|
|
<%- if @show_reason %>
|
|
|
|
<div class='embed-error'>
|
|
|
|
<%- if @hosts.present? %>
|
|
|
|
<p><%= t 'embed.referer' %><code><%= request.referer %></code></p>
|
|
|
|
<p><%= t 'embed.mismatch' %></p>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<%- @hosts.each do |eh| %>
|
|
|
|
<li>
|
2020-07-27 08:23:54 +08:00
|
|
|
<%= eh.host %><%- if eh.allowed_paths.present? %><%= eh.allowed_paths %><% end %>
|
2016-12-14 03:37:37 +08:00
|
|
|
</li>
|
|
|
|
<%- end %>
|
|
|
|
</ul>
|
|
|
|
<%- else %>
|
|
|
|
<p><%= t 'embed.no_hosts' %></p>
|
|
|
|
<%- end %>
|
|
|
|
|
|
|
|
<p><%= link_to(t('embed.configure'), @setup_url, target: '_blank') %></p>
|
|
|
|
</div>
|
|
|
|
<%- end %>
|