From 468d3621ded23122176af2e50cd6a63df6a7af89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9fanni?= Date: Tue, 20 Feb 2018 12:03:13 -0800 Subject: [PATCH] Change /questions page layout (#2358) The /questions page was displaying too much information. Now the page has a clean layout. --- app/views/questions/index.html.erb | 41 ++++++++++++-------- app/views/sidebar/_user.html.erb | 4 -- app/views/tag/_sorting.html.erb | 62 +++++++++++++++--------------- 3 files changed, 56 insertions(+), 51 deletions(-) diff --git a/app/views/questions/index.html.erb b/app/views/questions/index.html.erb index 4375dadc93a..3dd8786645b 100644 --- a/app/views/questions/index.html.erb +++ b/app/views/questions/index.html.erb @@ -1,6 +1,4 @@ -<%= render :partial => "sidebar/user" %> - -
+
<% if params[:action] == 'answered' %>

Recently Answered

@@ -11,28 +9,39 @@ <% elsif params[:action] == 'liked' %>

Liked Questions

<% else %> +

Questions and Answers

<%= t('questions.index.explanation') %>

<% end %>

New to Public Lab? Learn how this works »

+

- +
+
+

Ask a question here

+ +
+
+ <% if params[:controller] == 'questions' %> + <%= render partial: 'tag/sorting' %> + <% end %> +
+
+
<%= render :partial => "notes/format_toggle" %> diff --git a/app/views/sidebar/_user.html.erb b/app/views/sidebar/_user.html.erb index acbb5d6621b..db1f51ddc5d 100644 --- a/app/views/sidebar/_user.html.erb +++ b/app/views/sidebar/_user.html.erb @@ -5,10 +5,6 @@ <% if params[:controller] != 'questions' %> <%= feature('sidebar-feature') %> <% end %> - - <% if params[:controller] == 'questions' %> - <%= render partial: 'tag/sorting' %> - <% end %>
diff --git a/app/views/tag/_sorting.html.erb b/app/views/tag/_sorting.html.erb index 61811a8835b..5238db37846 100644 --- a/app/views/tag/_sorting.html.erb +++ b/app/views/tag/_sorting.html.erb @@ -1,34 +1,34 @@ -
-

Filter questions by topic

-

Refine questions by entering tags to search or answer questions on specific topics.

- -
-
- - -
-
-
+ + }); + +