adds appropriate text for comment replies
This commit is contained in:
11
app/helpers/comments_helper.rb
Normal file
11
app/helpers/comments_helper.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
module CommentsHelper
|
||||
|
||||
def comment_link_text(parent)
|
||||
parent.class == Debate ? "Comentar" : "Responder"
|
||||
end
|
||||
|
||||
def comment_button_text(parent)
|
||||
parent.class == Debate ? "Publicar comentario" : "Publicar respuesta"
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user