You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
883 B
19 lines
883 B
import moment from "moment"
|
|
|
|
<div class="story-chapter" if(!state.removed)>
|
|
<a class="anchor" id=input.chapter.id />
|
|
<div class="metadata">
|
|
<div class="options color-menu">
|
|
<a on-click("open", "edit") >Edit</a>
|
|
<a on-click("open", "remove") >Remove</a>
|
|
</div>
|
|
<chapter-meta kind="title" value=input.chapter.title />
|
|
<chapter-meta kind="date" value=input.chapter.fictionalDate />
|
|
<chapter-meta weak kind="date" value=input.chapter.createdDate />
|
|
<chapter-meta weak kind="author" value=input.chapter.author />
|
|
</div>
|
|
<markdown class="chapter-content" source=input.chapter.source />
|
|
|
|
<edit-chapter-modal enabled=(state.modal === "edit") chapter=input.chapter on-close("close") on-edit("updateChapter") />
|
|
<remove-chapter-modal enabled=(state.modal === "remove") chapter=input.chapter on-close("close") on-remove("removeChapter") />
|
|
</div>
|