From ea4d1fee634c53f1a9ac64a5aa5dbfd7ee0fb0f5 Mon Sep 17 00:00:00 2001 From: Dmitrii Pashutskii Date: Tue, 15 Oct 2019 23:24:19 +0800 Subject: [PATCH] remove a space and refactor conditions (#4437) * remove a space and refactor conditions * fix the condition to present check --- app/views/internal/articles/_individual_article.html.erb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/views/internal/articles/_individual_article.html.erb b/app/views/internal/articles/_individual_article.html.erb index 08adba0ec..ee36e9c3c 100644 --- a/app/views/internal/articles/_individual_article.html.erb +++ b/app/views/internal/articles/_individual_article.html.erb @@ -134,8 +134,7 @@

Twitter MAIN

+<% if article.user.twitter_username? %> { author: @<%= article.user.twitter_username %> } #DEVCommunity<% end %> <% end %> <% if (article.decorate.cached_tag_list_array & Tag.bufferized_tags).any? %> @@ -144,8 +143,7 @@

Twitter Satellite

+<% if article.user.twitter_username? %> { author: @<%= article.user.twitter_username %> }<% end %> <% end %> <% end %>