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