| 1 | <div class="row mt-5"> |
| 2 | <div class="col-md-12"> |
| 3 | <%= render('partial_menus', active_menu: 'show' ) %> |
| 4 | </div> |
| 5 | </div> |
| 6 | <div class="row mt-3"> |
| 7 | <% if @show_comment_form %> |
| 8 | <div class="mb-3"> |
| 9 | <%= form_for [@user, Comment.new] do |f| %> |
| 10 | <%= f.text_area :body, placeholder: t('discussion_comment_placeholder'), rows: "4" , cols: "50%" %><br/> |
| 11 | <%= f.hidden_field :user_id, value: current_user.id if user_signed_in? %> |
| 12 | <%= f.submit t('discussion_comment_button'), class: "btn btn-primary" %> |
| 13 | <% end %> |
| 14 | </div> |
| 15 | <% end %> |
| 16 | <%= render(partial: 'comments/comment', collection: @user.comments) %> |
| 17 | </div> |