修改系统消息样式

This commit is contained in:
ouyangxuhua 2015-09-17 16:25:30 +08:00
parent 47d734e0d9
commit d31b1d99a9
1 changed files with 9 additions and 17 deletions

View File

@ -31,30 +31,22 @@
</ul>
</div>
<% @sytem_messages.each do |sytem_message| %>
<% @sytem_messages.each do |system_message| %>
<div class="resources mt10">
<div class="homepagePostBrief">
<div class="homepagePostPortrait">
<%= link_to image_tag(url_to_avatar(sytem_message.user), :width => "50", :height => "50"), user_path(sytem_message.user_id), :alt => "用户头像" %>
<%= image_tag("/images/logo.png", :width => "42", :height => "42",class: "mt3") %>
</div>
<div class="homepagePostDes">
<div class="homepagePostTo break_word">
Trustie平台 发布了 <!--+"(课程名称)" -->
系统消息
<span class="fl"> Trustie平台 发布了系统消息:</span>
</div>
<div class="homepagePostTitle break_word"> <!--+"(作业名称)"-->
系统消息系统消息系统消息系统消息
</div>
<div class="homepagePostSubmitContainer">
<div class="homepagePostSubmit">
<%#= student_work_activity_submit_status(homework: activity) %>
</div>
<div class="homepagePostDeadline">截止时间:<%= sytem_message.created_at %></div>
</div>
<div class="homepagePostIntro break_word upload_img">
<%= sytem_message.content.nil? ? sytem_message.description.html_safe : sytem_message.content.html_safe %>
</div>
<div class="cl"></div>
<p class="homepagePostIntro break_word upload_img">
<%= system_message.content.nil? ? system_message.description.html_safe : system_message.content.html_safe %>
</p>
<div class="cl"></div>
<p class="homepagePostDeadline">截止时间:<%= format_time(system_message.created_at) %></p>
</div>
<div class="cl"></div>
</div>