fix course link location

This commit is contained in:
xianbo 2013-11-05 09:17:50 +08:00
parent bc996da5ae
commit c8c4cecccd
2 changed files with 8 additions and 4 deletions

View File

@ -42,7 +42,9 @@
</tr>
<tr>
<td style="padding-left: 8px"><a>forge.trustie.net/courses</a></td>
<td ><%=link_to "主页", home_path %> > <%=link_to "实践课程", :controller => 'projects', :action => 'index' %> > <span><%=link_to @project.name, project_path %>(<%= @course.time %><%= @course.term %>)</span></td>
<td ><%=link_to "主页", home_path %> >
<%=link_to "实践课程", :controller => 'projects', :action => 'index' %> >
<span><%=link_to @project.name, project_path %>(<%= @course.time %><%= @course.term %>)</span></td>
</tr>
</table>
</div>

View File

@ -32,7 +32,9 @@
</tr>
<tr>
<td style="padding-left: 8px"><a>forge.trustie.net/courses</a></td>
<td ><%=link_to "主页", home_path %> > <%=link_to "实践课程", :controller => 'projects', :action => 'index' %> > <span><%= link_to(@bid.courses.first.name, project_path(@bid.courses.first)) %>()</span> > <%=link_to "作业列表", :controller =>'projects', :action => 'homework'%></td>
<td ><%=link_to "主页", home_path %> > <%=link_to "实践课程", :controller => 'projects', :action => 'index' %> >
<span><%= link_to(@bid.courses.first.name, project_path(@bid.courses.first)) %></span> >
<%=link_to(@bid.name, respond_path(@bid))%></td>
</tr>
</table>
</div>
@ -45,14 +47,14 @@
<table style="width: 232px ; height: 80px; padding-left: 8px">
<tr style="font-size:16px">
<td width="70px">课程名:</td>
<td align="center" style="font-size: 18px">
<td align="center">
<strong> <%= link_to(@bid.courses.first.name, project_path(@bid.courses.first)) %></strong>
</td>
</tr>
<tr style="font-size:16px">
<td width="70px">作业名:</td>
<td align="center">
<span style="color:#ed8924"><%= h @bid.name %></span>
<span style="color:#ed8924"><strong><%= h @bid.name %></strong></span>
</td>
</tr>
<tr>