indicating locked thread at bottom, asking to log in before reply

This commit is contained in:
jomo
2014-10-12 21:46:29 +02:00
parent b91bb8e0aa
commit 36792c6dc1
3 changed files with 24 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
<%= form_for [reply.thread, reply] do |f| %>
<%= render partial: "md_editor", locals: {name: "threadreply[content]", content: reply.content, mini: false} %>
<p><%= f.submit "Reply", class: "btn blue" %></p>
<p><%= f.submit "Reply#{ ' (Locked)' if reply.thread.locked? }", class: "btn blue" %></p>
<% end %>