From f628774995565ea0bf2e41082c33f8d9337762a9 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Wed, 6 Sep 2017 14:25:18 +0200 Subject: [PATCH] Add checkbox to subscribe to author's comments --- app/assets/stylesheets/request-for-comments.css.scss | 5 +++++ app/views/exercises/_comment_dialogcontent.html.slim | 3 +++ config/locales/de.yml | 1 + config/locales/en.yml | 1 + 4 files changed, 10 insertions(+) diff --git a/app/assets/stylesheets/request-for-comments.css.scss b/app/assets/stylesheets/request-for-comments.css.scss index 9810afb8..e0ff5fa0 100644 --- a/app/assets/stylesheets/request-for-comments.css.scss +++ b/app/assets/stylesheets/request-for-comments.css.scss @@ -127,6 +127,11 @@ } } } + + input#subscribe { + margin-top: 5px; + margin-right: 5px; + } } #myComment { diff --git a/app/views/exercises/_comment_dialogcontent.html.slim b/app/views/exercises/_comment_dialogcontent.html.slim index 4eb59190..cdb7441e 100644 --- a/app/views/exercises/_comment_dialogcontent.html.slim +++ b/app/views/exercises/_comment_dialogcontent.html.slim @@ -1,6 +1,9 @@ #otherComments h5 =t('exercises.implement.comment.others') .container + label + input#subscribe type='checkbox' title=t('request_for_comments.subscribe_to_author') + = t('request_for_comments.subscribe_to_author') #myComment h5 =t('exercises.implement.comment.addyours') diff --git a/config/locales/de.yml b/config/locales/de.yml index 3089d2cd..76a01d1f 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -475,6 +475,7 @@ de: comment_edited: "bearbeitet" modal_title: "Einen Kommentar in Zeile ${line} hinzufügen" click_for_more_comments: "Klicken um ${numComments} weitere Kommentare zu sehen..." + subscribe_to_author: "Bei neuen Kommentaren des Autors per E-Mail benachrichtigt werden" sessions: create: failure: Fehlerhafte E-Mail oder Passwort. diff --git a/config/locales/en.yml b/config/locales/en.yml index bc0737b8..8fde6821 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -496,6 +496,7 @@ en: comment_edited: "edited" modal_title: "Add a comment to line ${line}" click_for_more_comments: "Click to view ${numComments} more comments..." + subscribe_to_author: "Receive E-Mail notifications for new comments of the original author" sessions: create: failure: Invalid email or password.