mirror of
https://git.sr.ht/~edwardloveall/scribe
synced 2025-12-10 12:41:23 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user