docs: def view(self, request, group, **kwargs):
          """Display and store comments."""
          if request.method == 'POST':
              message = request.POST.get('message')
              if message is not None and message.strip():
                  comment = GroupComments(group=group, author=request.user,
                                          message=message.strip())
                  comment.save()
                  msg = _(u'Comment added.')
                  if request.POST.get('sendmail', ''):
                      self._send_mail(comment, group)
                  if 'postresolve' in request.POST:
                      self._resolve_group(request, group)
                      msg = _(u'Comment added and event marked as resolved.')
                  messages.success(request, msg)
                  return HttpResponseRedirect(request.path)
          query = GroupComments.objects.filter(group=group).order_by('-created')
          return self.render('sentry_comments/index.html', {
              'comments': query,
              'group': group,
          })