mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 14:15:48 +08:00
09bc95d46b
* FIX: Quoting Oneboxed content should exclude formatting When a post is quoted that includes Oneboxed content, we should not include the formatting generated by the Onebox. Rather, we should attempt to collapse the link referenced by the Onebox to a single line text link. * DEV: fix tests
26 lines
924 B
Plaintext
26 lines
924 B
Plaintext
<aside class="onebox {{subname}}" data-onebox-src="{{link}}">
|
|
<header class="source">
|
|
{{#favicon}}
|
|
<img src="{{favicon}}" class="site-icon"/>
|
|
{{/favicon}}
|
|
|
|
{{#article_published_time}}
|
|
<a href="{{link}}" target="_blank" rel="noopener" title="{{article_published_time_title}}">{{domain}} – {{article_published_time}}</a>
|
|
{{/article_published_time}}
|
|
{{^article_published_time}}
|
|
<a href="{{link}}" target="_blank" rel="noopener">{{domain}}</a>
|
|
{{/article_published_time}}
|
|
</header>
|
|
|
|
<article class="onebox-body">
|
|
{{{view}}}
|
|
</article>
|
|
|
|
<div class="onebox-metadata">
|
|
{{#metadata_1_label}}<span style="float: left;">{{metadata_1_label}}: {{metadata_1_value}}</span>{{/metadata_1_label}}
|
|
{{#metadata_2_label}}<span style="float: right;">{{metadata_2_label}}: {{metadata_2_value}}</span>{{/metadata_2_label}}
|
|
</div>
|
|
|
|
<div style="clear: both"></div>
|
|
</aside>
|