diff --git a/app/views/users/user_messages.html.erb b/app/views/users/user_messages.html.erb index a5cc70f99..b9e626f2d 100644 --- a/app/views/users/user_messages.html.erb +++ b/app/views/users/user_messages.html.erb @@ -64,10 +64,8 @@ <% unless usm.subject.nil? %>

标题:<%= usm.subject %>

<% end %> - <% if usm.description.nil? && usm.content.nil? %> - - <% else %> -
内容:
<%= usm.description.html_safe %>
+ <% if (!usm.description.nil? && usm.description != "") || (!usm.content.nil? && usm.content != "") %> +
内容:
<%= usm.description.nil? ? usm.content.html_safe : usm.description.html_safe %>
<% end %>
  • <%= time_tag(usm.created_at).html_safe %>