Sha256: 84d939b09b4bbc8e288e097069bffa315ea10365c181f306ee04878ced4bf6d1

Contents?: true

Size: 694 Bytes

Versions: 2

Compression:

Stored size: 694 Bytes

Contents

%section.comments-list
  - if user_is_author_of entity
    %h2= _('Comments')
    - if entity.comments.count.zero?
      .empty
        = _('No comment has been left')
    - entity.comments.each do |comment|
      .comment.comment-card
        %header
          .headers
            %ul.informations
              %li
                = icon('user', ['fw'])
                = comment.name || link_to("@#{comment.user.username}", comment.user)
              %li
                = icon('calendar', ['fw'])
                %strong= _('Posted on:')
                = comment.created_at
        %article= markdown comment.comment

  = render 'elabs/comments/form', url: url, new_comment: new_comment

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
elabs-2.0.0 app/views/elabs/comments/_comments.html.haml
elabs-2.0.0.pre app/views/elabs/comments/_comments.html.haml