|
@ -1,10 +1,10 @@ |
|
|
<div class=["post", component.kindClass("post-type")]> |
|
|
|
|
|
|
|
|
<div if(!state.removed) class=["post", component.kindClass("post-type")]> |
|
|
<div class="post-meta-row"> |
|
|
<div class="post-meta-row"> |
|
|
<div class="options color-menu"> |
|
|
<div class="options color-menu"> |
|
|
<a if(input.post.position != 1) on-click("move", input.post.position - 1)>Up</a> |
|
|
|
|
|
<a if(!input.last) on-click("move", input.post.position + 1)>Down</a> |
|
|
|
|
|
|
|
|
<a on-click("move", -1, true)>Up</a> |
|
|
|
|
|
<a on-click("move", +1, true)>Down</a> |
|
|
<!--<a on-click("open", "edit") >Edit</a>--> |
|
|
<!--<a on-click("open", "edit") >Edit</a>--> |
|
|
<!--<a on-click("open", "remove") >Remove</a>--> |
|
|
|
|
|
|
|
|
<a on-click("open", "remove")>Remove</a> |
|
|
</div> |
|
|
</div> |
|
|
<post-meta kind="timestamp" value=input.post.time /> |
|
|
<post-meta kind="timestamp" value=input.post.time /> |
|
|
<post-meta kind="nick" value=input.post.nick /> |
|
|
<post-meta kind="nick" value=input.post.nick /> |
|
@ -23,4 +23,5 @@ |
|
|
<div if(input.post.kind === "text") class="post-body color-text"> |
|
|
<div if(input.post.kind === "text") class="post-body color-text"> |
|
|
<markdown class="post-content post-text" source=state.text /> |
|
|
<markdown class="post-content post-text" source=state.text /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<remove-post-modal enabled=(state.modal === "remove") post=input.post on-close("close") on-remove("remove") /> |
|
|
</div> |
|
|
</div> |