2013-11-08 20:54:45 +08:00
|
|
|
<div class="content-title-top">
|
2013-10-31 15:18:42 +08:00
|
|
|
<% if @memberships.empty? %>
|
2013-10-07 22:50:20 +08:00
|
|
|
<% if @user != User.current %>
|
|
|
|
<p class="font_description">
|
|
|
|
<%= l(:label_project_course_un) %>
|
|
|
|
</p>
|
|
|
|
<% else %>
|
|
|
|
<p class="font_description">
|
2013-10-31 15:18:42 +08:00
|
|
|
|
2014-06-10 17:03:02 +08:00
|
|
|
<%= l(:label_project_cousre_studentun) %><%= link_to"#{l(:label_course_join_student)}",{:controller=>'courses',:action=>'index'}, :class => 'icon icon-add' %>
|
2013-10-09 16:14:11 +08:00
|
|
|
</p>
|
2013-10-07 22:50:20 +08:00
|
|
|
<% end %>
|
2013-10-31 15:18:42 +08:00
|
|
|
<% else %>
|
2014-05-29 18:34:34 +08:00
|
|
|
<div class="user_course_list menu-div">
|
2014-05-21 18:29:56 +08:00
|
|
|
<div class="menu">
|
2014-07-01 16:56:23 +08:00
|
|
|
<%= link_to"#{l(:label_course_view_student)}",courses_path, :class => 'icon icon-add' %>
|
2014-05-21 18:29:56 +08:00
|
|
|
<ul>
|
|
|
|
<li mode='doing' class="on">进行中</li>
|
|
|
|
<li mode='end'>已完结</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-02-18 09:28:16 +08:00
|
|
|
|
2014-05-21 18:29:56 +08:00
|
|
|
<div class="dyn_list_wrapper" mode='doing'>
|
|
|
|
<div class='created_course'>
|
|
|
|
<%= render :partial => 'course_form', :locals => {:memberships => @memberships_doing} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-18 09:28:16 +08:00
|
|
|
|
2014-05-21 18:29:56 +08:00
|
|
|
<div class="dyn_list_wrapper hidden" mode='end'>
|
|
|
|
<div class="created_course ">
|
|
|
|
<%= render :partial => 'course_form', :locals => {:memberships => @memberships_done} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-22 09:44:14 +08:00
|
|
|
|
2014-02-18 09:28:16 +08:00
|
|
|
<% end %>
|
2014-03-06 15:42:19 +08:00
|
|
|
|
2013-10-07 22:50:20 +08:00
|
|
|
</div>
|