From b716e593b57ffe94e32e2496b353ba32c2ceb0b5 Mon Sep 17 00:00:00 2001 From: ouyangxuhua Date: Tue, 15 Mar 2016 13:49:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E7=BB=87=E4=B8=8B=E7=9A=84=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 7 +++++++ app/views/layouts/base_org.html.erb | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) 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? %> <% else %> - - + + <% end %>