mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
add setting navbar index for new
This commit is contained in:
@@ -28,7 +28,7 @@ class SettingsController < ApplicationController
|
||||
|
||||
private
|
||||
def get_navbar
|
||||
@navbar = default_laboratory.navbar.sort_by{|e| e["index"]}
|
||||
@navbar = default_laboratory.navbar.sort_by{|e| e["index"].to_i }
|
||||
# if User.current.logged?
|
||||
# pernal_index = {"name"=>"个人主页", "link"=>get_site_url("url", "#{Rails.application.config_for(:configuration)['platform_url']}/current_user"), "hidden"=>false}
|
||||
# @navbar << pernal_index
|
||||
|
||||
Reference in New Issue
Block a user