foodsoft/plugins/messages/app/views/messagegroups/_messagegroup.html.haml

9 lines
422 B
Text
Raw Normal View History

%section.well
%h3= messagegroup.name
= render :partial => 'shared/group', :locals => { :group => messagegroup }
= link_to_new_message(message_params: {group_id: messagegroup.id})
- if messagegroup.member?(current_user)
= link_to t('.leave'), leave_messagegroup_path(messagegroup), class: 'btn', method: :post
- else
= link_to t('.join'), join_messagegroup_path(messagegroup), class: 'btn', method: :post