user。trustie.net域名下跳转到项目页面时主域名没变bug(尚需测试)

user.trustie.net域名下主导航栏多一个项目托管菜单问题
This commit is contained in:
z9hang 2014-07-17 18:10:32 +08:00
parent 615b3ac2ac
commit 7c3a81735c
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: '...'), course_path(course) %></li>
<li><%= link_to course.name.truncate(10, omission: '...'), {:controller => 'courses',:action => 'show',id:course.id} %></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: '...'), project_path(project) %></li>
<li><%= link_to project.name.truncate(10, omission: '...'), {:controller => 'projects', :action => 'show',id: project.id } %></li>
<% end %>
</ul>
</li>

View File

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