add doing/done course list to student role.

This commit is contained in:
yanxd 2014-02-18 09:28:16 +08:00
parent 6766936ed5
commit 3ce5988292
1 changed files with 17 additions and 3 deletions

View File

@ -11,8 +11,22 @@
</p> </p>
<% end %> <% end %>
<% else %> <% else %>
<p><%= link_to"#{l(:label_course_view_student)}",{:controller=>'projects',:action=>'course', :course => 1}, :class => 'icon icon-add' %></p> <p>
<%= render :partial => 'course_form', :locals => {:memberships => @memberships}%> <span><%=l(:label_course_doing)%>(<%=@memberships_doing.count%>)</span>
<% end %> <%= link_to"#{l(:label_course_view_student)}",{:controller=>'projects',:action=>'course', :course => 1}, :class => 'icon icon-add' %>
</p>
<div>
<%= render :partial => 'course_form', :locals => {:memberships => @memberships_doing}%>
</div>
<div style="clear:both;"></div>
<p>
<span><%=l(:label_course_done)%>(<%=@memberships_done.count%>)</span>
</p>
<div class="courses_history" >
<%= render :partial => 'course_form', :locals => {:memberships => @memberships_done}%>
</div>
<% end %>
</div> </div>