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

14 lines
628 B
Handlebars
Raw Normal View History

2024-09-19 11:50:04 +00:00
<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
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}}
<p class="note-timestamp" id="note-edited-timestamp">Edited: {{moment-format @note.editedAt}}</p>
{{/if}}
<p class="note-timestamp" id="note-created-timestamp">Posted: {{moment-format @note.createdAt ""}}</p>
2024-09-19 11:50:04 +00:00
</div>
</div>