-if @comment.opinions.present?
  .opinions
    - @comment.opinions.each do |opinion|
      - opinion_type = opinion.class.name.split('::').last.downcase
      .opinion{ :class => "opinion-#{opinion_type}" }
        - if opinion_type == 'like'
          %i.icon-thumbs-up
        - else
          %i.icon-thumbs-down
        %img.avatar.img-rounded{ :src => opinion.user.profile_picture_url, :alt => opinion.user.alias }
        %span.who
          = link_to_unless opinion.user.nil?, opinion.user.alias, opinion.user
-else
  No hay opiniones aún
-if @comment.opinions.present?
  .opinions
    - @comment.opinions.each do |opinion|
      - if opinion.user
        - opinion_type = opinion.class.name.split('::').last.downcase
        .opinion{ :class => "opinion-#{opinion_type}" }
          - if opinion_type == 'like'
            %i.icon-thumbs-up
          - else
            %i.icon-thumbs-down
          %img.avatar.img-rounded{ :src => opinion.user.profile_picture_url, :alt => opinion.user.alias }
          %span.who
            = link_to_unless opinion.user.nil?, opinion.user.alias, opinion.user
-else
  No hay opiniones aún
Fix opinions popover not showing for unexisting user
Fix opinions popover not showing for unexisting user
