|
|
@ -2,14 +2,14 @@
|
|
|
|
<div class="homepagePostBrief">
|
|
|
|
<div class="homepagePostBrief">
|
|
|
|
<div class="homepagePostPortrait">
|
|
|
|
<div class="homepagePostPortrait">
|
|
|
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id,:host=>Setting.host_user), :alt => "用户头像" %>
|
|
|
|
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id,:host=>Setting.host_user), :alt => "用户头像" %>
|
|
|
|
<%= render :partial => 'users/show_detail_info', :locals => {:user => activity.author} %>
|
|
|
|
<%#= render :partial => 'users/show_detail_info', :locals => {:user => activity.author} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="homepagePostDes">
|
|
|
|
<div class="homepagePostDes">
|
|
|
|
<div class="homepagePostTo break_word mt-4">
|
|
|
|
<div class="homepagePostTo break_word mt-4">
|
|
|
|
<% if activity.try(:author).try(:realname) == ' ' %>
|
|
|
|
<% if activity.try(:author).try(:realname) == ' ' %>
|
|
|
|
<%= link_to activity.try(:author), user_path(activity.author_id,:host=>Setting.host_user), :class => "newsBlue mr15" %>
|
|
|
|
<%= link_to activity.try(:author), user_path(activity.author_id, :host=>Setting.host_user), :class => "newsBlue mr15" %>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id,:host=>Setting.host_user), :class => "newsBlue mr15" %>
|
|
|
|
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id, :host=>Setting.host_user), :class => "newsBlue mr15" %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
TO
|
|
|
|
TO
|
|
|
|
<%= link_to activity.course.name.to_s+" | 课程问答区", course_boards_path(activity.course,:host=> Setting.host_course), :class => "newsBlue ml15 mr5"%>
|
|
|
|
<%= link_to activity.course.name.to_s+" | 课程问答区", course_boards_path(activity.course,:host=> Setting.host_course), :class => "newsBlue ml15 mr5"%>
|
|
|
@ -18,15 +18,15 @@
|
|
|
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
|
|
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
|
|
|
<%= link_to activity.subject.to_s.html_safe, board_message_path(activity.board_id, activity), :class=> "postGrey" %>
|
|
|
|
<%= link_to activity.subject.to_s.html_safe, board_message_path(activity.board_id, activity), :class=> "postGrey" %>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_path(activity.board_id, activity), :class=> "postGrey"%>
|
|
|
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_path(activity.board_id, activity), :class=> "postGrey" %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% if activity.sticky == 1%>
|
|
|
|
<% if activity.sticky == 1 %>
|
|
|
|
<span class="sticky_btn_cir ml10">置顶</span>
|
|
|
|
<span class="sticky_btn_cir ml10">置顶</span>
|
|
|
|
<% end%>
|
|
|
|
<% end%>
|
|
|
|
<% if activity.locked%>
|
|
|
|
<% if activity.locked %>
|
|
|
|
<span class="locked_btn_cir ml10 fl" title="已锁定"> </span>
|
|
|
|
<span class="locked_btn_cir ml10 fl" title="已锁定"> </span>
|
|
|
|
<% end%>
|
|
|
|
<% end %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="homepagePostDate fl">
|
|
|
|
<div class="homepagePostDate fl">
|
|
|
|
发帖时间:<%= format_time(activity.created_on) %>
|
|
|
|
发帖时间:<%= format_time(activity.created_on) %>
|
|
|
@ -36,9 +36,9 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<% if activity.parent_id.nil? %>
|
|
|
|
<% if activity.parent_id.nil? %>
|
|
|
|
<% content = activity.content%>
|
|
|
|
<% content = activity.content %>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<% content = activity.parent.content%>
|
|
|
|
<% content = activity.parent.content %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%=render :partial =>"users/intro_content", :locals=>{:user_activity_id =>user_activity_id, :content=>content} %>
|
|
|
|
<%=render :partial =>"users/intro_content", :locals=>{:user_activity_id =>user_activity_id, :content=>content} %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|