项目社区,课程社区的首页,点击项目列表或班级列表,网页标签显示“项目/课程-确实让创新更美好”
This commit is contained in:
parent
b3b9ed1c2f
commit
a41b9d3a42
|
@ -4101,6 +4101,7 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_courselist
|
def user_courselist
|
||||||
|
@user_courselist = "课程"
|
||||||
@order, @c_sort, @type, @list_type = 1, 2, 1, 1
|
@order, @c_sort, @type, @list_type = 1, 2, 1, 1
|
||||||
|
|
||||||
@my_syllabuses = @user.syllabuses
|
@my_syllabuses = @user.syllabuses
|
||||||
|
@ -4284,6 +4285,7 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_projectlist
|
def user_projectlist
|
||||||
|
@user_projectlist = "项目"
|
||||||
@order, @c_sort, @type, @list_type = 1, 2, 1, 1
|
@order, @c_sort, @type, @list_type = 1, 2, 1, 1
|
||||||
#limit = 5
|
#limit = 5
|
||||||
|
|
||||||
|
|
|
@ -1344,10 +1344,10 @@ module ApplicationHelper
|
||||||
elsif @forum || params[:controller] == "forums"
|
elsif @forum || params[:controller] == "forums"
|
||||||
title << "问吧"
|
title << "问吧"
|
||||||
elsif @user
|
elsif @user
|
||||||
if !@project_community.blank?
|
if !@project_community.blank? || !@user_projectlist.blank?
|
||||||
title << @project_community
|
title << "项目"
|
||||||
elsif !@course_community.blank?
|
elsif !@course_community.blank? || !@user_courselist.blank?
|
||||||
title << @course_community
|
title << "课程"
|
||||||
elsif !@contest_community.blank?
|
elsif !@contest_community.blank?
|
||||||
title << @contest_community
|
title << @contest_community
|
||||||
elsif !@manage_issues.blank?
|
elsif !@manage_issues.blank?
|
||||||
|
|
Loading…
Reference in New Issue