|
@ -4,7 +4,14 @@ |
|
|
<div class="header"> |
|
|
<div class="header"> |
|
|
<h1 class="color-primary">${component.title}</h1> |
|
|
<h1 class="color-primary">${component.title}</h1> |
|
|
<a on-click("open", "log.edit") class="color-menu">Edit</a> |
|
|
<a on-click("open", "log.edit") class="color-menu">Edit</a> |
|
|
|
|
|
<a on-click("open", "log.remove") class="color-menu">Remove</a> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<annotation if(state.removed) level="error"> |
|
|
|
|
|
<p> |
|
|
|
|
|
This log 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> |
|
|
<post for(post in state.log.posts) |
|
|
<post for(post in state.log.posts) |
|
|
key=post.id |
|
|
key=post.id |
|
|
on-move("movePost", post) |
|
|
on-move("movePost", post) |
|
@ -18,4 +25,5 @@ |
|
|
|
|
|
|
|
|
<add-post-modal enabled=(state.modal === "post.add") logId=state.log.id on-close("close") on-added("postAdded") /> |
|
|
<add-post-modal enabled=(state.modal === "post.add") logId=state.log.id on-close("close") on-added("postAdded") /> |
|
|
<edit-log-modal enabled=(state.modal === "log.edit") log=state.log on-close("close") on-edited("logEdited") /> |
|
|
<edit-log-modal enabled=(state.modal === "log.edit") log=state.log on-close("close") on-edited("logEdited") /> |
|
|
|
|
|
<remove-log-modal enabled=(state.modal === "log.remove") logId=state.log.id on-close("close") on-removed("logRemoved") /> |
|
|
</main> |
|
|
</main> |