The frontend/UI server, written in JS using the MarkoJS library
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.
|
|
<div class="story-chapter"> <a class="anchor" id=input.chapter.id /> <h1 if(input.chapter.title) class="title color-primary">${input.chapter.title}</h1> <div class="metadata"> <div class="options color-menu"> <if-permitted user=input.user author=input.chapter.author permission="chapter.edit"> <a on-click("open", "edit") >Edit</a> </if-permitted> <if-permitted user=input.user author=input.chapter.author permission="chapter.move"> <a on-click("open", "move") >Move</a> </if-permitted> <if-permitted user=input.user author=input.chapter.author permission="chapter.remove"> <a on-click("open", "remove") >Remove</a> </if-permitted> </div> <chapter-meta kind="date" utc=true 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 color-text" source=input.chapter.source />
<edit-chapter-modal enabled=(state.modal === "edit") chapter=input.chapter on-close("close") on-edit("updateChapter") /> <move-chapter-modal enabled=(state.modal === "move") chapter=input.chapter user=input.user on-close("close") on-move("moveChapter") /> <remove-chapter-modal enabled=(state.modal === "remove") chapter=input.chapter on-close("close") on-remove("removeChapter") /> </div>
|