Sha256: 5316d05ab957876a9ff33edc9113fac7ebfe09179220bb7d02a19a6adcda2b52

Contents?: true

Size: 1.1 KB

Versions: 10

Compression:

Stored size: 1.1 KB

Contents

- comment_key = comment.cache_key.parameterize(separator: '_').remove('-')

.media.media-comment.d-flex{ id: comment_key }
  = render_owner_avatar(comment.owner, size: '50x50')
  .media-body.rounded.shadow-sm.g-bg-secondary.g-pa-15.w-100
    - if comment.owner == current_owner
      = link_to '#edit-comment', class: 'edit-comment' do
        %i.bi.bi-gear.fs-5.text-dark
    .review-comment-content
      .g-mb-15.mb-2
        .user-info.g-color-gray-dark-v1.mb-0= render_owner_name(comment.owner)
        .fs-13.text-muted= comment.created_at.strftime('%Y/%m/%d %H:%M')
      %p.content-markdown= comment.content
      %p.content-html.normal-text
    .edit-comment-form.hidden
      = form_for comment, url: task_comment_path(current_task, comment, comment_key: comment_key), remote: true do |f|
        = f.text_area :content, { id: "#{comment_key}_content" }
        .mt-3.text-end
          %a.btn.btn-outline-default.text-danger.cancel-edit-mode{ href: '#cancel-edit-form' } Cancel
          = f.submit 'Update', class: 'btn btn-outline-success'

  :javascript
    window.comments.renderMarkdown("##{comment_key}");

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_execution-0.1.12 app/views/rails_execution/comments/_comment.html.haml
rails_execution-0.1.11 app/views/rails_execution/comments/_comment.html.haml
rails_execution-0.1.10 app/views/rails_execution/comments/_comment.html.haml
rails_execution-0.1.9 app/views/rails_execution/comments/_comment.html.haml
rails_execution-0.1.8 app/views/rails_execution/comments/_comment.html.haml
rails_execution-0.1.7 app/views/rails_execution/comments/_comment.html.haml
rails_execution-0.1.5 app/views/rails_execution/comments/_comment.html.haml
rails_execution-0.1.4 app/views/rails_execution/comments/_comment.html.haml
rails_execution-0.1.2 app/views/rails_execution/comments/_comment.html.haml
rails_execution-0.1.1 app/views/rails_execution/comments/_comment.html.haml