add reply button functionality
This commit is contained in:
@ -43,8 +43,10 @@
|
||||
show_reply = false
|
||||
end
|
||||
if show_reply then
|
||||
local d = post.created_at < post.edited_at and post.edited_at or post.created_at
|
||||
local reply_text = ("On %s, %s said:\n%s\n\n---\n\n"):format(os.date("%c", d), post.username, post.original_markup)
|
||||
%>
|
||||
<button>Reply</button>
|
||||
<button value="<%= reply_text %>" class="reply-button">Reply</button>
|
||||
<% end %>
|
||||
</span>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user