Show the host for the iframe link

Instead of showing only: Click to visit embedded content

An embedded link now displays with the domain it's linking to: Embedded
content at example.com

This hopefully breaks up the links a bit so it'e easier to distinguish
between a bunch of them in a row (as long as they are on different
domains).
This commit is contained in:
Edward Loveall
2021-07-05 15:36:38 -04:00
parent d863cc27a5
commit 7cda16cef1
4 changed files with 20 additions and 2 deletions

View File

@@ -156,7 +156,13 @@ describe PageContent do
html = PageContent.new(page: page).render_to_string
html.should eq %(<p><div class="embedded"><a href="https://example.com">Click to visit embedded content</a></div></p>)
html.should eq stripped_html <<-HTML
<p>
<div class="embedded">
<a href="https://example.com">Embedded content at example.com</a>
</div>
</p>
HTML
end
it "renders an ordered list" do