|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
<%# has_commit = has_commit_poll?(activity.id ,User.current)%>
|
|
|
|
|
<% poll_name = activity.polls_name.empty? ? l(:label_poll_new) : activity.polls_name%>
|
|
|
|
|
<div class="resources mt15">
|
|
|
|
|
<div class="homepagePostBrief">
|
|
|
|
|
<div class="homepagePostPortrait">
|
|
|
|
@ -16,7 +18,12 @@
|
|
|
|
|
<!--<a href="javascript:void(0);" class="newsBlue ml15">分布式计算环境(课程名称)</a>-->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostTitle" style="word-break:break-all;">
|
|
|
|
|
<a href="javascript:void(0);" class="postGrey"><%=activity.polls_name.to_s%>(问卷名称)</a>
|
|
|
|
|
<%#= link_to activity.polls_name.to_s+"(问卷名称)", %>
|
|
|
|
|
<%# if has_commit %>
|
|
|
|
|
<%#= link_to poll_name, poll_result_poll_path(activity.id), :class => "polls_title polls_title_w fl c_dblue"%>
|
|
|
|
|
<%# else %>
|
|
|
|
|
<%= link_to poll_name+"(问卷名称)", poll_path(activity.id), :class => "postGrey"%>
|
|
|
|
|
<%# end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostSubmitContainer">
|
|
|
|
|
<div class="homepagePostDeadline">时间:<%= format_date(activity.created_at) %></div>
|
|
|
|
|