增加什么是项目链接。点击什么是项目 实现jQuary窗帘效果显示解释
This commit is contained in:
parent
5277eddb95
commit
d0c9390e91
|
@ -21,6 +21,12 @@
|
||||||
$.globalEval(submit_homework());
|
$.globalEval(submit_homework());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function show()
|
||||||
|
{
|
||||||
|
$("#what_is_project_div").slideToggle();
|
||||||
|
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
<% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? &&
|
<% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? &&
|
||||||
|
@ -32,11 +38,34 @@
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @homework_list.empty? %>
|
<table style="width: 100%">
|
||||||
<div class="font_lighter_sidebar" style="padding-left: 10px">
|
<tr>
|
||||||
暂无学生提交作业!
|
<td style="width: 50%">
|
||||||
</div>
|
<% if @homework_list.empty? %>
|
||||||
<% end %>
|
<div class="font_lighter_sidebar" style="padding-left: 10px;">
|
||||||
|
<span>暂无学生提交作业!</span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</td>
|
||||||
|
<td style="width: 50%">
|
||||||
|
<div class="font_lighter_sidebar" style="padding-left: 200px;">
|
||||||
|
<strong><a href="#" onclick="show()" style="color:#919294;">什么是项目?</a></strong>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="width: 50%">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td style="width: 50%">
|
||||||
|
<div id = "what_is_project_div" style="display: none">
|
||||||
|
<p>项目是一种由用户创建的基于网络的协作空间,能够为个人或小组提供分布式的协同交流和资料管理等方面的支持。</p>
|
||||||
|
<p>项目托管平台:<a href="http://forge.trustie.net/">http://forge.trustie.net/</a> </p>
|
||||||
|
<%= link_to "我要创建项目",new_project_path(course: 0, project_type: 0), :target => '_blank'%>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
<div id='bidding_project_list'>
|
<div id='bidding_project_list'>
|
||||||
<%= render :partial => 'homework_list', :locals => {:homework => @homework_list} %>
|
<%= render :partial => 'homework_list', :locals => {:homework => @homework_list} %>
|
||||||
|
|
Loading…
Reference in New Issue