This commit is contained in:
z9hang 2014-09-16 14:07:30 +08:00
commit 943f428aad
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 || []