mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 23:23:56 +08:00
e0d9232259
This is a PR of the renaming whitelist to allowlist and blacklist to the blocklist.
26 lines
782 B
Plaintext
26 lines
782 B
Plaintext
<header class='discourse' data-embed-state='error'>
|
|
<h3><%= t 'embed.error' %></h3>
|
|
<%= link_to(image_tag(SiteSetting.site_logo_url, class: 'logo'), Discourse.base_url) %>
|
|
<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>
|
|
<%= eh.host %><%- if eh.allowed_paths.present? %><%= eh.allowed_paths %><% end %>
|
|
</li>
|
|
<%- end %>
|
|
</ul>
|
|
<%- else %>
|
|
<p><%= t 'embed.no_hosts' %></p>
|
|
<%- end %>
|
|
|
|
<p><%= link_to(t('embed.configure'), @setup_url, target: '_blank') %></p>
|
|
</div>
|
|
<%- end %>
|