user.trustie.net域名下课程主页导航栏多个课程实践菜单

页面跳转时域名不正确问题重新修正
This commit is contained in:
z9hang 2014-07-18 09:11:02 +08:00
parent 0f4933240b
commit 5b7fc4048a
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@
<ul class="course_sub_menu">
<% User.current.courses.each do |course| %>
<% if !course_endTime_timeout?(course) %>
<li><%= link_to course.name.truncate(10, omission: '...'), {:controller => 'courses',:action => 'show',id:course.id} %></li>
<li><%= link_to course.name.truncate(10, omission: '...'), {:controller => 'courses',:action => 'show',id:course.id, host: Setting.course_domain} %></li>
<% end %>
<% end %>
</ul>
@ -54,7 +54,7 @@
<li id="project_loggedas_li"><%= link_to l(:label_my_projects), {:controller => 'users', :action => 'user_projects', id: User.current.id, host: Setting.project_domain} %>
<ul class="project_sub_menu">
<% User.current.projects.each do |project| %>
<li><%= link_to project.name.truncate(10, omission: '...'), {:controller => 'projects', :action => 'show',id: project.id } %></li>
<li><%= link_to project.name.truncate(10, omission: '...'), {:controller => 'projects', :action => 'show',id: project.id, host: Setting.project_domain } %></li>
<% end %>
</ul>
</li>

View File

@ -1,4 +1,4 @@
<% @nav_dispaly_course_label = 1 %>
<% #@nav_dispaly_course_label = 1 %>
<!DOCTYPE html>
<html lang="en">
<head>