解决版本库网页标题Bug

This commit is contained in:
linhk 2014-09-16 11:41:49 +08:00
parent 3ef05e64b8
commit 56c31d6e2f
2 changed files with 5 additions and 1 deletions

View File

@ -555,7 +555,6 @@ class ProjectsController < ApplicationController
# Show @project
def show
@project_type = params[:project_type]
# try to redirect to the requested menu item

View File

@ -635,6 +635,11 @@ module ApplicationHelper
end
def html_title(*args)
#點擊項目版本庫 多觸發一次 字符串為"/"
#暫時解決方法 直接判斷
if(args == ["/"])
args = []
end
first_page = FirstPage.where("page_type = 'project'").first
if args.empty?
title = @html_title || []