From 86495bec7c0e6cbb6b7e8801f24535f4503107e8 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Wed, 23 Aug 2017 17:43:13 +0200 Subject: [PATCH 01/46] Restructure modal --- .../stylesheets/request-for-comments.css.scss | 14 ++++++++++++++ .../exercises/_comment_dialogcontent.html.slim | 9 +++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/request-for-comments.css.scss b/app/assets/stylesheets/request-for-comments.css.scss index 6448e6e7..63027531 100644 --- a/app/assets/stylesheets/request-for-comments.css.scss +++ b/app/assets/stylesheets/request-for-comments.css.scss @@ -64,3 +64,17 @@ p.comment { overflow: hidden; margin-bottom: 10px; } + +#otherComments { + h5 { + margin-top: 0px; + } +} + +#myComment { + margin-bottom: 10px; + + textarea { + resize: none; + } +} \ No newline at end of file diff --git a/app/views/exercises/_comment_dialogcontent.html.slim b/app/views/exercises/_comment_dialogcontent.html.slim index 4c78035a..988c5311 100644 --- a/app/views/exercises/_comment_dialogcontent.html.slim +++ b/app/views/exercises/_comment_dialogcontent.html.slim @@ -1,9 +1,10 @@ -h5 =t('exercises.implement.comment.addyours') - -textarea.form-control(style='resize:none;') #otherComments h5 =t('exercises.implement.comment.others') pre#otherCommentsTextfield -p = '' + +#myComment + h5 =t('exercises.implement.comment.addyours') + textarea.form-control + button#addCommentButton.btn.btn-block.btn-primary(type='button') =t('exercises.implement.comment.addCommentButton') button#removeAllButton.btn.btn-block.btn-warning(type='button') =t('exercises.implement.comment.removeAllOnLine') \ No newline at end of file From ce3bf525092812c150ba69a261744099bef5cbb0 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Wed, 23 Aug 2017 17:52:16 +0200 Subject: [PATCH 02/46] Remove old code --- app/views/request_for_comments/show.html.erb | 28 -------------------- 1 file changed, 28 deletions(-) diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index ab60ef91..470dcf8f 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -82,7 +82,6 @@ also, all settings from the rails model needed for the editor configuration in t