From 35477b1005f9db156c78b51e12cfaa351240ec55 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Thu, 29 Sep 2016 16:43:19 +0200 Subject: [PATCH] Remove Info tab and change comment title on results view --- app/assets/stylesheets/extend/bootstrap.scss | 4 +++ app/views/my_modules/_result.html.erb | 38 +++++++------------- app/views/result_comments/_index.html.erb | 4 ++- app/views/step_comments/_index.html.erb | 2 +- 4 files changed, 20 insertions(+), 28 deletions(-) diff --git a/app/assets/stylesheets/extend/bootstrap.scss b/app/assets/stylesheets/extend/bootstrap.scss index 151ce3110..4159a13b1 100644 --- a/app/assets/stylesheets/extend/bootstrap.scss +++ b/app/assets/stylesheets/extend/bootstrap.scss @@ -53,3 +53,7 @@ .step-comment .col-xs-12 { float: none; } + +.result-comment .col-xs-12 { + float: none; +} diff --git a/app/views/my_modules/_result.html.erb b/app/views/my_modules/_result.html.erb index 29da2a114..069abc134 100644 --- a/app/views/my_modules/_result.html.erb +++ b/app/views/my_modules/_result.html.erb @@ -36,34 +36,20 @@
- -
-
-
- <%= render partial: 'my_modules/result_user_generated.html.erb', - locals: { result: result, markdown: markdown } %> -
- <% if can_view_result_comments(@my_module) %> -
-
-
- <% end %> +
+
+ <%= render partial: 'my_modules/result_user_generated.html.erb', + locals: { result: result, markdown: markdown } %>
+ <% if can_view_result_comments(@my_module) %> +
+
+
+
+ <% end %>
diff --git a/app/views/result_comments/_index.html.erb b/app/views/result_comments/_index.html.erb index 00bf407dd..e8ef220d3 100644 --- a/app/views/result_comments/_index.html.erb +++ b/app/views/result_comments/_index.html.erb @@ -1,5 +1,7 @@
-
<%= t('my_modules.results.comments_tab') %>
+
+ <%= t('my_modules.results.comments_tab') %> +