mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
FIX update setting api for nav bar url
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
class SettingsController < ApplicationController
|
||||
def show
|
||||
@old_projects_url = nil
|
||||
@old_projects_url = nil
|
||||
@old_projects_url = "https://www.trustie.net/users/#{current_user.try(:login)}/projects" if User.current.logged?
|
||||
|
||||
@add = Site.add
|
||||
@personal = User.current.logged? ? Site.personal : []
|
||||
|
||||
# @sites = Site.group(:site_type).select(:name, :url, :key)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user