config/initializers/commontator.rb in commontator-1.0.0 vs config/initializers/commontator.rb in commontator-1.0.1
- old
+ new
@@ -11,20 +11,23 @@
# Proc that is called after any javascript runs (e.g. to clear flash)
# It is passed the 'self' object from the view template, so you should be able to
# access anything you normally could in a view template (by using, e.g. view.flash)
# Should return a string containing JS to be appended to all Commontator JS responses
# Default: lambda { |view| '$("#error_explanation").remove();' }
- config.javascript_proc = lambda { |view| '$("#error_explanation").remove();' }
+ config.javascript_proc = lambda { |view| '$("#attention").html("' + \
+ escape_javascript(render(:partial => 'shared/attention')) + \
+ '");' }
# User (acts_as_commontator) Configuration
# The name used if the user's name cannot be retrieved
# Default: 'Anonymous'
config.user_missing_name = 'Anonymous'
- # Whether the user's name is clickable in the comment view
+ # Whether the comment creator's name is clickable in the comment view
+ # If enabled, the link will point to the comment creator's show page
# Default: false
config.user_name_clickable = false
# Whether automated emails are sent to the user whenever
# a comment is posted on a thread they subscribe to
@@ -119,11 +122,11 @@
# Whether comments deleted by admins can be seen
# (the content will still be hidden)
# Default: true
config.deleted_comments_are_visible = true
- # The method which returns the commontable's id that is sent to users in email messages
+ # The method which returns the commontable's id, sent to users in email messages
# Default: 'id'
config.commontable_id_method = 'id'
# Proc called with thread and user as arguments
# If it returns true, that user is a moderator for that particular thread
@@ -146,12 +149,12 @@
# Proc that returns the subscription email subject string
# Default:
# lambda do |params|
# "#{params[:creator_name]} #{params[:config].comment_create_verb_past} a " + \
- # "#{params[:config].comment_name} on #{params[:commontable_name]} ##{params[:commontable_id]}"
+ # "#{params[:config].comment_name} on #{params[:commontable_name]} #{params[:commontable_id]}"
# end
config.subscription_email_subject_proc = lambda do |params|
"#{params[:creator_name]} #{params[:config].comment_create_verb_past} a " + \
- "#{params[:config].comment_name} on #{params[:commontable_name]} ##{params[:commontable_id]}"
+ "#{params[:config].comment_name} on #{params[:commontable_name]} #{params[:commontable_id]}"
end
end