Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14614 from shariquerik/new-feedback-comment
refactor: New Feedback & Comment Design for Blog Post
- Loading branch information
Showing
14 changed files
with
415 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
{% from "frappe/templates/includes/macros.html" import square_image_with_fallback %} | ||
{% from "frappe/templates/includes/avatar_macro.html" import avatar %} | ||
|
||
<div class="comment-row media"> | ||
{{ square_image_with_fallback(src=frappe.get_gravatar(comment.comment_email or comment.sender), size='extra-small', alt=comment.sender_full_name, class='align-self-start mr-4') }} | ||
<div class="media-body"> | ||
<div class="d-flex justify-content-between align-items-start"> | ||
<span class="font-weight-bold text-muted"> | ||
{{ comment.sender_full_name or comment.comment_by }} | ||
</span> | ||
<span class="text-muted small"> | ||
{{ comment.creation | global_date_format }} | ||
</span> | ||
</div> | ||
<div class="text-muted"> | ||
{{ comment.content | markdown }} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="comment-row media my-5"> | ||
<div class="comment-avatar"> | ||
{{ avatar(user_id=(comment.comment_email or comment.sender), size='avatar-medium') }} | ||
</div> | ||
<div class="comment-content"> | ||
<div class="head mb-2"> | ||
<span class="title font-weight-bold mr-2">{{ comment.sender_full_name or comment.comment_by }}</span> | ||
<span class="time small text-muted">{{ frappe.utils.pretty_date(comment.creation) }}</span> | ||
</div> | ||
<div class="content">{{ comment.content | markdown }}</div> | ||
</div> | ||
</div> |
Oops, something went wrong.