add data attributes to reflect embed status
This commit is contained in:
parent
5914a3db20
commit
6eb0b310fe
|
@ -1,4 +1,4 @@
|
|||
<header class='discourse'>
|
||||
<header class='discourse' data-embed-status='loaded'>
|
||||
<% if @topic_view.topic.posts_count < 2 %>
|
||||
<%= link_to(I18n.t('embed.start_discussion'), @topic_view.topic.url, class: 'button', target: '_blank') %>
|
||||
<% elsif @topic_view.topic.posts_count > 10 %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<header class='discourse'>
|
||||
<header class='discourse' data-embed-status='error'>
|
||||
<h3><%= t 'embed.error' %></h3>
|
||||
<%= link_to(image_tag(SiteSetting.logo_url, class: 'logo'), Discourse.base_url) %>
|
||||
<div class='clearfix'></div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<header class='discourse'>
|
||||
<header class='discourse' data-embed-status='loading'>
|
||||
<h3><%= t 'embed.loading' %></h3>
|
||||
<%= link_to(image_tag(SiteSetting.logo_url, class: 'logo'), Discourse.base_url) %>
|
||||
<div class='clearfix'></div>
|
||||
|
|
Loading…
Reference in New Issue