From 3e8decf1d173bd597fc079eb8eb83062d2e907f4 Mon Sep 17 00:00:00 2001
From: yanxd
Date: Wed, 21 May 2014 18:29:56 +0800
Subject: [PATCH] student user_course
---
.../users/_course_list_have_entity.html.erb | 18 ----------
app/views/users/_my_joinedcourse.html.erb | 34 +++++++++++--------
app/views/users/user_courses.html.erb | 19 +++++++++++
3 files changed, 38 insertions(+), 33 deletions(-)
diff --git a/app/views/users/_course_list_have_entity.html.erb b/app/views/users/_course_list_have_entity.html.erb
index 6b5725a1f..87dd52635 100644
--- a/app/views/users/_course_list_have_entity.html.erb
+++ b/app/views/users/_course_list_have_entity.html.erb
@@ -20,21 +20,3 @@
-
\ No newline at end of file
diff --git a/app/views/users/_my_joinedcourse.html.erb b/app/views/users/_my_joinedcourse.html.erb
index dc759a809..31780e301 100644
--- a/app/views/users/_my_joinedcourse.html.erb
+++ b/app/views/users/_my_joinedcourse.html.erb
@@ -11,23 +11,27 @@
<% end %>
<% else %>
-
- <%=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}%>
-
+
+
-
+
+
+ <%= render :partial => 'course_form', :locals => {:memberships => @memberships_doing} %>
+
+
-
- <%= link_to l(:label_course_done)+"("+@memberships_done.count.to_s+")", 'javascript:void(0);', :onclick => '$("#courses_history_block").slideToggle(400); ', style:"color:#666666" if User.current.logged? %>
-
-
-
- <%= render :partial => 'course_form', :locals => {:memberships => @memberships_done}%>
-
+
+
+ <%= render :partial => 'course_form', :locals => {:memberships => @memberships_done} %>
+
+
+
<% end %>
diff --git a/app/views/users/user_courses.html.erb b/app/views/users/user_courses.html.erb
index aa4a366fc..6a4d7afdd 100644
--- a/app/views/users/user_courses.html.erb
+++ b/app/views/users/user_courses.html.erb
@@ -12,3 +12,22 @@
});
+
+
\ No newline at end of file