Merge branch 'develop' of https://bdgit.trustie.net/hushasha/bigdata into develop
This commit is contained in:
commit
71c34557e5
|
|
@ -149,12 +149,12 @@ class MyController < ApplicationController
|
|||
|
||||
# 认证
|
||||
ue = @user.user_extensions
|
||||
#@trail_authentication = ApplyAction.where(:user_id => User.current.id, :container_type => "TrialAuthorization").order("created_at desc").first
|
||||
@trail_authentication = ApplyAction.where(:user_id => User.current.id, :container_type => "TrialAuthorization").order("created_at desc").first
|
||||
@authentication = @user.authentication
|
||||
if @user.nickname.nil? || @user.lastname.nil? || ue.identity.nil? || ue.location.nil? || ue.school_id.nil?
|
||||
@require_auth = true
|
||||
else
|
||||
if User.current.certification != 1
|
||||
if User.current.certification != 1 && (@trail_authentication.blank? || (@trail_authentication.status == 2 && (@trail_authentication.updated_at.to_i + 24*60*60) < Time.now.to_i))
|
||||
@require_trail_auth = true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<i class="fa fa-map-marker mr5 color-grey"></i>
|
||||
<%= link_to User.current.show_real_name, user_path(User.current) %> >
|
||||
<%= link_to "在线课堂", courses_path() %> >
|
||||
<%= link_to @course.syllabus.title, syllabus_path(@course.syllabus), :title => "课程" %> > <%= link_to @course.name, course_path(@course), :title => "班级" %> > <%= link_to "讨论区列表", course_boards_path(@course) %> > <span>新建</span>
|
||||
<%= link_to @course.name, course_path(@course), :title => "班级" %> > <%= link_to "讨论区列表", course_boards_path(@course) %> > <span>新建</span>
|
||||
</p>
|
||||
|
||||
<div class="edu-con-top">
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<i class="fa fa-map-marker mr5 color-grey"></i>
|
||||
<%= link_to User.current.show_real_name, user_path(User.current) %> >
|
||||
<%= link_to "在线课堂", courses_path() %> >
|
||||
<%= link_to @course.syllabus.title, syllabus_path(@course.syllabus), :title => "课程" %> > <%= link_to @course.name, course_path(@course), :title => "班级" %> > <%= link_to "讨论区列表", course_boards_path(@course) %>
|
||||
<%= link_to @course.name, course_path(@course), :title => "班级" %> > <%= link_to "讨论区列表", course_boards_path(@course) %>
|
||||
</p>
|
||||
|
||||
<div class="edu-con-top">
|
||||
|
|
|
|||
Loading…
Reference in New Issue