64 lines
3.3 KiB
Plaintext
64 lines
3.3 KiB
Plaintext
<%= content_for(:header_tags) do %>
|
|
<%= import_ke(enable_at: true, prettify: false, init_activity: true) %>
|
|
<% end %>
|
|
<script>
|
|
var onUserCard = false;
|
|
var onImage = false;
|
|
$(document).ready(function(){
|
|
$("#relateProject,.relatePInfo").mouseover(function(){
|
|
$(".relatePInfo").css("display","block");
|
|
})
|
|
$("#relateProject,.relatePInfo").mouseout(function(){
|
|
$(".relatePInfo").css("display","none");
|
|
})
|
|
$(".coursesLineGrey").mouseover(function(){
|
|
$(this).css("color","#ffffff");
|
|
})
|
|
$(".coursesLineGrey").mouseout(function(){
|
|
$(this).css("color","#808080");
|
|
})
|
|
$(".homepagePostSetting,.coursesLineGrey").mouseover(function(){
|
|
$(this).prev().css("color","#ffffff");
|
|
$(this).css("z-index", "9999");
|
|
})
|
|
$(".homepagePostSetting").mouseout(function(){
|
|
$(this).prev().css("color","#808080");
|
|
$(this).css("z-index", "1");
|
|
})
|
|
})
|
|
</script>
|
|
<style type="text/css">
|
|
</style>
|
|
<% contest_activities.includes(:contest_act).each do |activity| if contest_activities %>
|
|
<script>
|
|
$(function () {
|
|
sd_create_editor_from_data(<%= activity.id%>, null, "100%", "<%= activity.class.to_s %>");
|
|
});
|
|
</script>
|
|
<% if activity && activity.contest_act %>
|
|
<% act = activity.contest_act %>
|
|
<% case activity.contest_act_type.to_s %>
|
|
<% when 'Work' %>
|
|
<%= render :partial => 'users/contest_work', :locals => {:activity => act, :user_activity_id => activity.id, :hw_status => 2} %>
|
|
<% when 'News' %>
|
|
<%= render :partial => 'users/contest_news', :locals => {:activity => act, :user_activity_id => activity.id, :is_contest => 1} %>
|
|
<% when 'Message' %>
|
|
<%= render :partial => 'users/contest_message', :locals => {:activity => act, :user_activity_id => activity.id,:is_course=>1,:is_board=>0} %>
|
|
<% when 'Poll' %>
|
|
<%#= render :partial => 'users/contest_poll', :locals => {:activity => act, :user_activity_id => activity.id, :is_course => 1} %>
|
|
<% when 'JournalsForMessage' %>
|
|
<%= render :partial => 'users/contest_journalsformessage', :locals => {:activity => act, :user_activity_id => activity.id, :is_contest => 1} %>
|
|
<% when 'Attachment' %>
|
|
<%#= render :partial => 'users/contest_attachment', :locals => {:activity => act, :user_activity_id => activity.id} %>
|
|
<% when 'Contest' %>
|
|
<%= render :partial => 'users/contest_create', :locals => {:activity => act, :user_activity_id => activity.id, :is_contest => 1} %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<% if contest_activities.count + page * 10 < @contest_activities_count %>
|
|
<!--<div id="show_more_course_activities" class="loadMore mt10 f_grey">点击展开更多<%#= link_to "", course_activity_path(@course.id, :type => type, :page => page), :id => "more_course_activities_link", :remote => "true", :class => "none" %></div>-->
|
|
<%= link_to "点击展开更多",contest_path(@contest.id, :type => type, :page => page),:id => "show_more_course_activities",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
|
<% end %>
|