linstrom/frontend-reactive/app/components/note.hbs

17 lines
863 B
Handlebars
Raw Normal View History

2024-09-19 11:50:04 +00:00
<div class="note">
2024-09-23 07:18:35 +00:00
<!-- TODO: figure out how to make the entire note clickable for opening with something like {{on "click" (fn this.openFullView)}} -->
2024-09-19 11:50:04 +00:00
<Note::UserHeader
2024-09-20 14:35:59 +00:00
@displayname="{{@note.displayname}}"
@handle="@{{@note.username}}@{{@note.server}}"
2024-09-19 11:50:04 +00:00
/>
2024-09-20 14:35:59 +00:00
<Note::Content @content="{{@note.content}}" />
2024-09-19 11:50:04 +00:00
<div class="note-timestamps-container">
2024-09-20 14:35:59 +00:00
{{#if @note.editedAt}}
2024-09-23 07:18:35 +00:00
<p class="note-timestamp" id="note-edited-timestamp">Edited: {{moment-format @note.editedAt "MMM DD, YYYY H:mm"}}</p>
2024-09-20 14:35:59 +00:00
{{/if}}
2024-09-23 07:18:35 +00:00
<p class="note-timestamp" id="note-created-timestamp">Posted: {{moment-format @note.createdAt "MMM DD, YYYY H:mm"}}</p>
2024-09-19 11:50:04 +00:00
</div>
2024-09-23 07:18:35 +00:00
<div class="separator-horizontal" />
<!-- TODO: Hardcoded values here, make them dynamic -->
<Note::Interactions @boostCount="25" @totalLikeCount="300" @hasBoosted="true" @hasReacted="false" />
2024-09-19 11:50:04 +00:00
</div>