Merge branch 'ouyang' of https://git.trustie.net/jacknudt/trustieforge into ouyang
This commit is contained in:
commit
da1b27cd38
|
@ -2943,23 +2943,11 @@ int main(int argc, char** argv){
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_url_in_org(user_id)
|
def user_url_in_org(user_id)
|
||||||
if Rails.env.development?
|
return Setting.host_name + "/users/" + user_id.to_s
|
||||||
return "http://localhost:3000/users/" + user_id.to_s
|
|
||||||
elsif Rails.env.test?
|
|
||||||
return "https://www.test.forge.trustie.net/users/" + user_id.to_s
|
|
||||||
else
|
|
||||||
return "https://www.trustie.net/users/" + user_id.to_s
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def logout_url_without_domain
|
def logout_url_without_domain
|
||||||
if Rails.env.development?
|
return Setting.host_name + "/logout"
|
||||||
return "http://localhost:3000/logout"
|
|
||||||
elsif Rails.env.test?
|
|
||||||
return "https://test.forge.trustie.net/logout"
|
|
||||||
else
|
|
||||||
return "https://www.trustie.net/logout"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def signin_url_without_domain
|
def signin_url_without_domain
|
||||||
|
|
Loading…
Reference in New Issue