0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/lib/onebox/templates/googlemeet.mustache
Sam a55af06406
FEATURE: add Google Meet oneboxes (#41018)
Render Meet links as static onebox cards instead of generic embeds.
Include localized labels, styling, SVG icon support,
lookup-link handling, and specs for matching and rendering.

<img width="916" height="296" alt="image"
src="https://github.com/user-attachments/assets/e88e7046-d456-4883-9d03-c0423a152a0b"
/>
2026-06-18 15:49:43 +10:00

26 lines
903 B
Text
Vendored

<div class="google-meet-onebox">
<div class="google-meet-onebox__icon">
<svg class="fa d-icon d-icon-video svg-icon svg-string" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<use href="#video"></use>
</svg>
</div>
<div class="google-meet-onebox__content">
<h3 class="google-meet-onebox__title">
<a href="{{link}}" target="_blank" rel="noopener">{{title}}</a>
</h3>
{{#meeting_code}}
<p class="google-meet-onebox__code">
<span class="google-meet-onebox__code-label">{{meeting_code_label}}</span>
<code class="google-meet-onebox__code-value">{{meeting_code}}</code>
</p>
{{/meeting_code}}
{{#description}}
<p class="google-meet-onebox__description">{{description}}</p>
{{/description}}
<a class="google-meet-onebox__join" href="{{link}}" target="_blank" rel="noopener">{{join_label}}</a>
</div>
</div>