项目社区,课程社区的首页,点击项目列表或班级列表,网页标签显示“项目/课程-确实让创新更美好”

This commit is contained in:
daiao 2017-01-18 09:44:11 +08:00
parent b3b9ed1c2f
commit a41b9d3a42
2 changed files with 6 additions and 4 deletions

View File

@ -4101,6 +4101,7 @@ class UsersController < ApplicationController
end
def user_courselist
@user_courselist = "课程"
@order, @c_sort, @type, @list_type = 1, 2, 1, 1
@my_syllabuses = @user.syllabuses
@ -4284,6 +4285,7 @@ class UsersController < ApplicationController
end
def user_projectlist
@user_projectlist = "项目"
@order, @c_sort, @type, @list_type = 1, 2, 1, 1
#limit = 5

View File

@ -1344,10 +1344,10 @@ module ApplicationHelper
elsif @forum || params[:controller] == "forums"
title << "问吧"
elsif @user
if !@project_community.blank?
title << @project_community
elsif !@course_community.blank?
title << @course_community
if !@project_community.blank? || !@user_projectlist.blank?
title << "项目"
elsif !@course_community.blank? || !@user_courselist.blank?
title << "课程"
elsif !@contest_community.blank?
title << @contest_community
elsif !@manage_issues.blank?