socialforge/app/views/users/_my_joinedcourse.html.erb

40 lines
1.3 KiB
Plaintext
Raw Normal View History

2013-11-08 20:54:45 +08:00
<div class="content-title-top">
<% 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>
2013-10-07 22:50:20 +08:00
<% else %>
<p class="font_description">
<%= l(:label_project_cousre_studentun) %>
<%= link_to"#{l(:label_course_join_student)}",{:controller=>'courses',:action=>'index'}, :class => 'icon icon-add' %>
<%= link_to "#{l(:label_course_new)}", {:controller => 'courses', :action => 'new'}, :class => 'icon icon-add' %>
</p>
2013-10-07 22:50:20 +08:00
<% end %>
<% 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-11-17 16:13:40 +08:00
<%= link_to "#{l(:label_course_new)}", new_course_path, class: 'icon icon-add' if @user == User.current %>
2014-05-21 18:29:56 +08:00
<ul>
2015-03-09 09:11:57 +08:00
<li mode='doing' class="on"><%= l(:label_course_doing)%></li>
<li mode='end'><%= l(:label_course_done)%></li>
2014-05-21 18:29:56 +08:00
</ul>
</div>
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-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>
<% end %>
2014-03-06 15:42:19 +08:00
2013-10-07 22:50:20 +08:00
</div>