diff --git a/app/assets/stylesheets/request-for-comments.css.scss b/app/assets/stylesheets/request-for-comments.css.scss index 02dab676..a219d21c 100644 --- a/app/assets/stylesheets/request-for-comments.css.scss +++ b/app/assets/stylesheets/request-for-comments.css.scss @@ -1,4 +1,5 @@ #commentitor { margin-top: 2rem; height: 600px; + background-color:#f9f9f9 } \ No newline at end of file diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index d0fe31af..28574ade 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -41,14 +41,18 @@ <% end %> +
+ <%= t('request_for_comments.howto_title') %>
<%= render_markdown(t('request_for_comments.howto')) %> +
- +
<% submission.files.each do |file| %> - <%= (file.path or "") + "/" + file.name + file.file_type.file_extension %> + <%= (file.path or "") + "/" + file.name + file.file_type.file_extension %>
+    <%= t('request_for_comments.click_here') %>
<%= file.content %>
<% end %> diff --git a/config/locales/de.yml b/config/locales/de.yml index de6fe41a..5b4329df 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -360,7 +360,13 @@ de: body: 'Bitte besuchen Sie %{link}, sofern Sie Ihr Passwort zurücksetzen wollen.' subject: Anweisungen zum Zurücksetzen Ihres Passworts request_for_comments: + click_here: Zum Kommentieren auf die Seitenleiste klicken! comments: Kommentare + howto: | + Um Kommentare zu einer Programmzeile hinzuzufügen, kann einfach auf die jeweilige Zeilennummer auf der linken Seite geklickt werden.
+ Es öffnet sich ein Textfeld, in dem der Kommentar eingetragen werden kann.
+ Mit "Kommentieren" wird der Kommentar dann gesichert und taucht als Sprechblase neben der Zeile auf. + howto_title: 'Anleitung:' index: get_my_comment_requests: Meine Kommentaranfragen all: "Alle Kommentaranfragen" diff --git a/config/locales/en.yml b/config/locales/en.yml index 304d7d0f..5541d68f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -381,7 +381,13 @@ en: body: 'Please visit %{link} if you want to reset your password.' subject: Password reset instructions request_for_comments: + click_here: Click on this sidebar to comment! comments: Comments + howto: | + To leave comments to a specific code line, click on the respective line number.
+ Enter your comment in the popup and save it by clicking "Comment this".
+ Your comment will show up next to the line number as a speech bubble symbol. + howto_title: 'How to comment:' index: all: All Requests for Comments get_my_comment_requests: My Requests for Comments