学生加入课程列表500

This commit is contained in:
yanxd 2014-01-24 17:13:51 +08:00
parent a850cc8a04
commit 85c055bdc0
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@
</td>
</tr>
<tr>
<td style="padding-left: 8px"><a><%=link_to "forge.trustie.net/users" ,:controller => 'users', :action => 'index' %></a></td>
<td style="padding-left: 8px"><%=link_to "forge.trustie.net/users" ,:controller => 'users', :action => 'index' %></td>
<!-- modified by bai --> <td><%=link_to "主页", home_path %> > <%=link_to "软件创客", :controller => 'users', :action => 'index' %> > <span><%=link_to @user.show_name, user_path %></span></td>
</tr>
</table>
@ -173,7 +173,8 @@
<td style="padding-left: 5px" width="76px"><%= l(:label_location) %>:</td><td class="font_lighter_sidebar" style="padding-left: 0px" width="170px"><%= @user.user_extensions.location %><%= @user.user_extensions.location_city %></td>
</tr>
<tr>
<td style="padding-left: 5px" width="76px"> <% if @user.user_extensions.identity == 0 %>
<% if @user.user_extensions.identity == 0 %>
<td style="padding-left: 5px" width="76px">
<%= l(:label_technical_title) %>:</td><td class="font_lighter_sidebar" style="padding-left: 0px" width="170px"><%= @user.user_extensions.technical_title %></td>
<% end %>
</tr>
@ -190,7 +191,6 @@
<td style="padding-left: 8px" width="70px"><%= l(:label_location) %>:</td>
</tr>
<% end %>
</tr>
<!-- end -->
</table>

View File

@ -12,7 +12,7 @@
<% end %>
<% else %>
<p><%= link_to"#{l(:label_course_view_student)}",{:controller=>'projects',:action=>'course', :course => 1}, :class => 'icon icon-add' %></p>
<%= render :partial => 'course_form' %>
<%= render :partial => 'course_form', :locals => {:memberships => @memberships}%>
<% end %>
</div>