Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
This commit is contained in:
commit
ee53ec544f
|
@ -163,7 +163,7 @@ class WelcomeController < ApplicationController
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
elsif url.include?(Setting.host_user.gsub('/',''))
|
elsif url.include?(Setting.host_user.gsub('/',''))
|
||||||
redirect_to(:controller => "users", :action => "index")
|
#redirect_to(:controller => "users", :action => "index")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<% if User.current.logged?%>
|
<% if User.current.logged?%>
|
||||||
<% if User.current.user_extensions.identity == 0 %>
|
|
||||||
<%= link_to(l(:label_course_new), {:controller => 'courses', :action => 'new'},
|
<%= link_to(l(:label_course_new), {:controller => 'courses', :action => 'new'},
|
||||||
:class => 'icon icon-add') if User.current.allowed_to?(:add_course,nil, :global => true) %>
|
:class => 'icon icon-add') if User.current.allowed_to?(:add_course,nil, :global => true) %>
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= link_to l(:label_course_join_student), join_private_courses_courses_path ,:remote => true, :class => 'icon icon-add' %>
|
<%= link_to l(:label_course_join_student), join_private_courses_courses_path ,:remote => true, :class => 'icon icon-add' %>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue