messagerie: add a reply button next to the latest message
This commit is contained in:
parent
09efd06dff
commit
92dd91a31b
10 changed files with 39 additions and 12 deletions
9
app/helpers/messagerie_helper.rb
Normal file
9
app/helpers/messagerie_helper.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
module MessagerieHelper
|
||||
def show_reply_button(commentaire, connected_user)
|
||||
commentaire.dossier.present? &&
|
||||
commentaire.dossier.messagerie_available? &&
|
||||
commentaire.dossier.user == connected_user &&
|
||||
!commentaire.sent_by?(connected_user) &&
|
||||
commentaire.dossier.commentaires.last == commentaire
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue