diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index c07b4ea564..7e56ce6ec6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -65,6 +65,18 @@ def feature_node(title) end end + # used in views/comments/_form.html.erb + def get_large_dropzone_id(location, reply_to) + case location + when :main + '-main' + when :reply + '-reply-' + reply_to.to_s + when :responses + '-responses' + end + end + def locale_name_pairs I18n.available_locales.map do |locale| [I18n.t('language', locale: locale), locale] diff --git a/app/views/comments/_edit.html.erb b/app/views/comments/_edit.html.erb index 0a27ef0132..34c7df59ed 100644 --- a/app/views/comments/_edit.html.erb +++ b/app/views/comments/_edit.html.erb @@ -8,8 +8,8 @@ #imagebar {width:100%;} - - <%= render :partial => "editor/toolbar" %> + + <%= render :partial => "editor/toolbar", :locals => { :comment_id => comment.id.to_s, :location => :edit } %>
- <%= raw translation('comments._form.drag_and_drop') %> - -
+<%= translation('layout._header.login.login_title') %> to comment. diff --git a/app/views/notes/_responses.html.erb b/app/views/notes/_responses.html.erb index 219ac3231c..a8f903506a 100644 --- a/app/views/notes/_responses.html.erb +++ b/app/views/notes/_responses.html.erb @@ -29,8 +29,16 @@
<%= link_to "Log in", "/login?return_to=#{request.path}" %> to comment
diff --git a/app/views/notes/_comments.html.erb b/app/views/notes/_comments.html.erb index 4ba917dc92..38a520eefd 100644 --- a/app/views/notes/_comments.html.erb +++ b/app/views/notes/_comments.html.erb @@ -15,7 +15,15 @@