change reply button to quote and simplify quote markup; hashlink to edit box when editing
This commit is contained in:
parent
eb9cadd36d
commit
72709226c0
@ -32,7 +32,7 @@
|
|||||||
local show_edit = me.id == post.user_id and not me:is_guest() and (not ntob(thread.is_locked) or me:is_mod()) and not no_reply
|
local show_edit = me.id == post.user_id and not me:is_guest() and (not ntob(thread.is_locked) or me:is_mod()) and not no_reply
|
||||||
if show_edit then
|
if show_edit then
|
||||||
%>
|
%>
|
||||||
<a class="linkbutton" href="<%= url_for("edit_post", {post_id = post.id}) %>">Edit</a>
|
<a class="linkbutton" href="<%= url_for("edit_post", {post_id = post.id}) .. "#babycode-content" %>">Edit</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%
|
<%
|
||||||
local show_reply = true
|
local show_reply = true
|
||||||
@ -50,9 +50,9 @@
|
|||||||
local quote_src_text = ("[url=%s]%s said:[/url]"):format(
|
local quote_src_text = ("[url=%s]%s said:[/url]"):format(
|
||||||
post_url, post.username
|
post_url, post.username
|
||||||
)
|
)
|
||||||
local reply_text = ("%s\n[quote]%s[/quote]\n---\n\n"):format(quote_src_text, post.original_markup)
|
local reply_text = ("%s\n[quote]%s[/quote]\n"):format(quote_src_text, post.original_markup)
|
||||||
%>
|
%>
|
||||||
<button value="<%= reply_text %>" class="reply-button">Reply</button>
|
<button value="<%= reply_text %>" class="reply-button">Quote</button>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%
|
<%
|
||||||
local show_delete = (post.user_id == me.id and not ntob(thread.is_locked)) or me:is_mod()
|
local show_delete = (post.user_id == me.id and not ntob(thread.is_locked)) or me:is_mod()
|
||||||
|
Loading…
Reference in New Issue
Block a user