From 6eb0b310fecba1c038c04a357575a2457c7123fe Mon Sep 17 00:00:00 2001 From: Christoph Holtermann Date: Wed, 15 Nov 2017 18:22:05 +0100 Subject: [PATCH] add data attributes to reflect embed status --- app/views/embed/comments.html.erb | 2 +- app/views/embed/embed_error.html.erb | 2 +- app/views/embed/loading.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/embed/comments.html.erb b/app/views/embed/comments.html.erb index 3c26b1b32d1..b00805e8dc6 100644 --- a/app/views/embed/comments.html.erb +++ b/app/views/embed/comments.html.erb @@ -1,4 +1,4 @@ -
+
<% 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 %> diff --git a/app/views/embed/embed_error.html.erb b/app/views/embed/embed_error.html.erb index 65f4c3c43df..eac85f13edb 100644 --- a/app/views/embed/embed_error.html.erb +++ b/app/views/embed/embed_error.html.erb @@ -1,4 +1,4 @@ -
+

<%= t 'embed.error' %>

<%= link_to(image_tag(SiteSetting.logo_url, class: 'logo'), Discourse.base_url) %>
diff --git a/app/views/embed/loading.html.erb b/app/views/embed/loading.html.erb index 2a5621de827..52e6636b1c2 100644 --- a/app/views/embed/loading.html.erb +++ b/app/views/embed/loading.html.erb @@ -1,4 +1,4 @@ -
+

<%= t 'embed.loading' %>

<%= link_to(image_tag(SiteSetting.logo_url, class: 'logo'), Discourse.base_url) %>