guange_homework
sw 10 years ago
commit d68ade19e1

@ -64,10 +64,8 @@
<% unless usm.subject.nil? %> <% unless usm.subject.nil? %>
<p><strong>标题:</strong><%= usm.subject %></p> <p><strong>标题:</strong><%= usm.subject %></p>
<% end %> <% end %>
<% if usm.description.nil? && usm.content.nil? %> <% if (!usm.description.nil? && usm.description != "") || (!usm.content.nil? && usm.content != "") %>
<div class="fl"><strong>内容:</strong></div><div class="ml36"><%= usm.description.nil? ? usm.content.html_safe : usm.description.html_safe %></div>
<% else %>
<div class="fl"><strong>内容:</strong></div><div class="ml36"><%= usm.description.html_safe %></div>
<% end %> <% end %>
</div> </div>
<li class="homepageNewsTime fl"><%= time_tag(usm.created_at).html_safe %> </li> <li class="homepageNewsTime fl"><%= time_tag(usm.created_at).html_safe %> </li>

Loading…
Cancel
Save