|
@ -1,11 +1,22 @@ |
|
|
<story-content-menu key="menu" on-select("menuSelect") story=state.story selected=(input.selected || {}) user=input.user /> |
|
|
<story-content-menu key="menu" on-select("menuSelect") story=state.story selected=(input.selected || {}) user=input.user /> |
|
|
<main> |
|
|
<main> |
|
|
<div class="story-content"> |
|
|
<div class="story-content"> |
|
|
|
|
|
<div class="header"> |
|
|
<h1 class="color-primary">${state.story.name}</h1> |
|
|
<h1 class="color-primary">${state.story.name}</h1> |
|
|
|
|
|
<a on-click("open", "story.edit") class="color-menu">Edit</a> |
|
|
|
|
|
<a on-click("open", "story.remove") class="color-menu">Remove</a> |
|
|
|
|
|
</div> |
|
|
<story-tags tags=state.story.tags on-select("open", "story.tags")/> |
|
|
<story-tags tags=state.story.tags on-select("open", "story.tags")/> |
|
|
|
|
|
<annotation if(state.removed) level="error"> |
|
|
|
|
|
<p> |
|
|
|
|
|
This story has been removed. Your browser has not refreshed the page yet, |
|
|
|
|
|
so you can still read it (or back it up) before leaving the page. |
|
|
|
|
|
</p> |
|
|
|
|
|
</annotation> |
|
|
<chapter for(chapter in state.story.chapters) key=chapter.id chapter=chapter on-edit("updateChapter", chapter.id) on-remove("removeChapter", chapter.id)/> |
|
|
<chapter for(chapter in state.story.chapters) key=chapter.id chapter=chapter on-edit("updateChapter", chapter.id) on-remove("removeChapter", chapter.id)/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<create-chapter-modal storyId=state.story.id enabled=(state.modal === "chapter.add") chapter=input.chapter on-close("close") on-add("addChapter") /> |
|
|
<create-chapter-modal storyId=state.story.id enabled=(state.modal === "chapter.add") chapter=input.chapter on-close("close") on-add("addChapter") /> |
|
|
<edit-story-tags-modal enabled=(state.modal === "story.tags") story=state.story on-tags("updateStoryTags") on-close("close") /> |
|
|
<edit-story-tags-modal enabled=(state.modal === "story.tags") story=state.story on-tags("updateStoryTags") on-close("close") /> |
|
|
|
|
|
<remove-story-modal enabled=(state.modal === "story.remove") story=state.story on-remove("timeToDie") on-close("close") /> |
|
|
</main> |
|
|
</main> |