linstrom/frontend-old-ember/app/components/note.hbs
mStar 88398334fe
JS frontend stuff
Move old ember frontend to properly named folder
Add vue based new frontend
2025-07-07 21:48:39 +02:00

18 lines
No EOL
911 B
Handlebars

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