diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 83fb8c4e1..16445ff81 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -3014,6 +3014,13 @@ def logout_url_without_domain Setting.host_name + "/logout" end +def signin_url_without_domain + Setting.host_name + "/login?login=true" +end + +def register_url_without_domain + Setting.host_name + "/login?login=false" +end #判断是否为默认的组织栏目 def is_default_field? field (field.name == 'activity' || field.name == 'course' || field.name == 'project') && field.field_type == 'default' diff --git a/app/views/layouts/base_org.html.erb b/app/views/layouts/base_org.html.erb index 4a8e00c96..f2ece1f35 100644 --- a/app/views/layouts/base_org.html.erb +++ b/app/views/layouts/base_org.html.erb @@ -44,14 +44,14 @@ <% if User.current.logged? %>