|
|
|
@ -1,32 +1,32 @@
|
|
|
|
|
<div class="resources mt10">
|
|
|
|
|
<div class="homepagePostBrief mt10"> <!-- onmouseover="$('#act-<%=user_activity.id %>').css('visibility','visible')" onmouseout="$('.homepagePostSetting').css('visibility','hidden')"-->
|
|
|
|
|
<div class="homepagePostBrief"> <!-- onmouseover="$('#act-<%=user_activity.id %>').css('visibility','visible')" onmouseout="$('.homepagePostSetting').css('visibility','hidden')"-->
|
|
|
|
|
<div class="homepagePostPortrait">
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "90", :height => "90"), user_path(activity.author_id), :alt => "用户头像" %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostDes">
|
|
|
|
|
<div class="homepagePostTo mb12 break_word">
|
|
|
|
|
<div class="homepagePostTo break_word">
|
|
|
|
|
<% if activity.try(:author).try(:realname) == ' ' %>
|
|
|
|
|
<%= link_to activity.try(:author), user_path(activity.author_id), :class => "newsBlue mr15" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id), :class => "newsBlue mr15" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
TO
|
|
|
|
|
<%= link_to activity.course.name.to_s+" | 课程讨论区", course_path(activity.course), :class => "newsBlue ml15 mr5", :style=>"word-break:break-all"%>
|
|
|
|
|
<%#= link_to activity.course.name.to_s+"(课程讨论区)", course_path(activity.course), :class => "newsBlue ml15 mr5", :style=>"word-break:break-all"%>
|
|
|
|
|
<%= link_to activity.course.name.to_s+" | 课程讨论区", course_boards_path(activity.course), :class => "newsBlue ml15 mr5"%>
|
|
|
|
|
<%#= link_to activity.course.name.to_s+"(课程讨论区)", course_path(activity.course), :class => "newsBlue ml15 mr5"%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostTitle mb12 break_word">
|
|
|
|
|
<div class="homepagePostTitle break_word">
|
|
|
|
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
|
|
|
|
<%= link_to activity.subject.to_s.html_safe, course_boards_path(activity.course,:parent_id =>activity.id, :topic_id => activity.id), :class=> "postGrey", :style=>"word-break:break-all" %>
|
|
|
|
|
<%= link_to activity.subject.to_s.html_safe, course_boards_path(activity.course,:parent_id =>activity.id, :topic_id => activity.id), :class=> "postGrey" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to activity.parent.subject.to_s.html_safe, course_boards_path(activity.course,:parent_id =>activity.parent_id, :topic_id => activity.id), :class=> "postGrey", :style=>"word-break:break-all"%>
|
|
|
|
|
<%= link_to activity.parent.subject.to_s.html_safe, course_boards_path(activity.course,:parent_id =>activity.parent_id, :topic_id => activity.id), :class=> "postGrey"%>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostSubmitContainer">
|
|
|
|
|
<div class="homepagePostDeadline">发帖时间:<%= format_date(activity.created_on) %></div>
|
|
|
|
|
<div class="homepagePostDate">
|
|
|
|
|
发帖时间:<%= format_date(activity.created_on) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="homepagePostIntro break_word" id="activity_description_<%= user_activity.id%>">帖子描述:
|
|
|
|
|
<div class="homepagePostIntro break_word upload_img" id="activity_description_<%= user_activity.id%>">帖子描述:
|
|
|
|
|
<% if activity.parent_id.nil? %>
|
|
|
|
|
<%= activity.content.to_s.html_safe%>
|
|
|
|
|
<% else %>
|
|
|
|
|