From 3ce5988292fe91d0289b0a46167b5d21dedda180 Mon Sep 17 00:00:00 2001
From: yanxd
Date: Tue, 18 Feb 2014 09:28:16 +0800
Subject: [PATCH] add doing/done course list to student role.
---
app/views/users/_my_joinedcourse.html.erb | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/app/views/users/_my_joinedcourse.html.erb b/app/views/users/_my_joinedcourse.html.erb
index f906c7065..24b4557c0 100644
--- a/app/views/users/_my_joinedcourse.html.erb
+++ b/app/views/users/_my_joinedcourse.html.erb
@@ -11,8 +11,22 @@
<% end %>
<% else %>
- <%= link_to"#{l(:label_course_view_student)}",{:controller=>'projects',:action=>'course', :course => 1}, :class => 'icon icon-add' %>
- <%= render :partial => 'course_form', :locals => {:memberships => @memberships}%>
- <% end %>
+
+ <%=l(:label_course_doing)%>(<%=@memberships_doing.count%>)
+ <%= link_to"#{l(:label_course_view_student)}",{:controller=>'projects',:action=>'course', :course => 1}, :class => 'icon icon-add' %>
+
+
+ <%= render :partial => 'course_form', :locals => {:memberships => @memberships_doing}%>
+
+
+
+
+
+ <%=l(:label_course_done)%>(<%=@memberships_done.count%>)
+
+
+ <%= render :partial => 'course_form', :locals => {:memberships => @memberships_done}%>
+
+<% end %>