add data attributes to reflect embed status

This commit is contained in:
Christoph Holtermann 2017-11-15 18:22:05 +01:00 committed by Sam
parent 5914a3db20
commit 6eb0b310fe
3 changed files with 3 additions and 3 deletions

View File

@ -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 %>

View File

@ -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>

View File

@ -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>