Fixed compatability issues in methods for thread-like messages

This commit is contained in:
MrYummy
2017-06-16 22:27:03 +02:00
parent 4e8d94a7b6
commit 6a0eedc585
5 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
<%= form_for [reply.get_message, reply] do |f| %>
<%= render partial: "md_editor", locals: {name: "messagereply[text]", content: reply.text} %>
<%= f.hidden_field :user_unread, value: current_user %>
<p><%= f.submit "Reply", class: "btn blue" %></p>
<% end %>

View File

@@ -26,7 +26,7 @@
<%= render partial: "users/username", locals: { user: user } %>
<span style="font-size:16px">
&nbsp;
<span class="<%= "bold" if message.user_unread && message.user_unread != current_user %>"><%= link_to message.subject, message %></span>
<span class="<%= "bold" if message.user_unread_id && message.user_unread != current_user %>"><%= link_to message.subject, message %></span>
&nbsp; | &nbsp;
</span>
<%= ago message.created_at %>