From 5e339ebb962b6662b8ef0dd0b585521d89fdb27f Mon Sep 17 00:00:00 2001 From: Lekhika Dugtal Date: Fri, 8 Nov 2019 23:17:04 +0530 Subject: [PATCH] Fix recent questions on shadow page (#6342) --- .../_recent_questions_shadow.html.erb | 75 +++++++++---------- app/views/questions/index_shadow.html.erb | 4 +- 2 files changed, 37 insertions(+), 42 deletions(-) diff --git a/app/views/questions/_recent_questions_shadow.html.erb b/app/views/questions/_recent_questions_shadow.html.erb index f56c3daddd..aa7bdbeab5 100644 --- a/app/views/questions/_recent_questions_shadow.html.erb +++ b/app/views/questions/_recent_questions_shadow.html.erb @@ -1,49 +1,42 @@ -
- <% @questions.limit(3).each_with_index do |node,i| %> -
-
- -
- - +
+
+ <% @questions.limit(3).each_with_index do |node,i| %> + + + target="_blank"<% end %> href="<%= node.path(:question) %>"><%= node.title %> + by @<%= node.author.name %> + + <% end %>
- <% end %>
diff --git a/app/views/questions/index_shadow.html.erb b/app/views/questions/index_shadow.html.erb index e7c4a1840d..12ec876f2f 100644 --- a/app/views/questions/index_shadow.html.erb +++ b/app/views/questions/index_shadow.html.erb @@ -48,7 +48,9 @@

Recent questions

-<%= render partial: "questions/recent_questions_shadow" %> +
+ <%= render partial: "questions/recent_questions_shadow" %> +