11 lines
840 B
Plaintext
11 lines
840 B
Plaintext
|
<% if @course %>
|
||
|
$("#homepage_left_course_list").html("<%= escape_javascript(render :partial => 'layouts/homepage_left_course_list', :locals => {:courses => @courses}) %>");
|
||
|
if($("#collect_course_icon_<%=@course.id %>").length > 0){
|
||
|
$("#collect_course_icon_<%=@course.id %>").html("<%= escape_javascript(render :partial => 'users/collect_course', :locals => {:course => @course}) %>");
|
||
|
}
|
||
|
<% elsif @project %>
|
||
|
$("#homepage_left_project_list").html("<%= escape_javascript(render :partial => 'layouts/homepage_left_project_list', :locals => {:projects => @projects}) %>");
|
||
|
if($("#collect_project_icon_<%=@project.id %>").length > 0){
|
||
|
$("#collect_project_icon_<%=@project.id %>").html("<%= escape_javascript(render :partial => 'users/collect_project', :locals => {:project => @project}) %>");
|
||
|
}
|
||
|
<% end %>
|