This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
修改判断用户是否登录
tags/v1
sylor_huang@126.com
6 years ago
parent
ad9874dff0
commit
594da4dc8a
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/controllers/settings_controller.rb
+ 1
- 1
app/controllers/settings_controller.rb
View File
@@ -1,6 +1,6 @@
class SettingsController < ApplicationController
def show
@old_projects_url = nil
@old_projects_url = "https://www.trustie.net/users/#{current_user.try(:login)}/projects" if
current_user.present
?
@old_projects_url = "https://www.trustie.net/users/#{current_user.try(:login)}/projects" if
User.current.logged
?
end
end
Write
Preview
Loading…
Cancel
Save