menu emojis
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
ActiveAdmin.register AdminUser do
|
||||
menu priority: 8, label: "🔑 Admin Users"
|
||||
permit_params :email, :password, :password_confirmation, :member_id
|
||||
|
||||
index do
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
ActiveAdmin.register Download do
|
||||
actions :index, :show
|
||||
|
||||
menu priority: 6, label: "Download Stats"
|
||||
menu priority: 7, label: "📊 Download Stats"
|
||||
|
||||
scope :all, default: true
|
||||
scope("Today") { |scope| scope.where("downloads.created_at >= ?", Date.current.beginning_of_day) }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
ActiveAdmin.register Event do
|
||||
permit_params :name, :date
|
||||
|
||||
menu priority: 3
|
||||
menu priority: 3, label: "📅 Events"
|
||||
|
||||
scope :all, default: true
|
||||
scope("Upcoming") { |scope| scope.where("date >= ?", Time.current) }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
ActiveAdmin.register_page "Files" do
|
||||
menu priority: 6, label: "Files"
|
||||
menu priority: 6, label: "📁 Files"
|
||||
|
||||
content do
|
||||
service = FileManagerService.new
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
ActiveAdmin.register Image do
|
||||
permit_params :file_upload
|
||||
|
||||
menu priority: 5
|
||||
menu priority: 5, label: "🖼️ Images"
|
||||
|
||||
scope :all, default: true
|
||||
scope("In use") { |scope| scope.where(id: SoftwareImage.select(:image_id)).or(scope.where(id: Member.where.not(image_id: nil).select(:image_id))) }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
ActiveAdmin.register Member do
|
||||
permit_params :nick, :real_nick, :motto, :avatar_filename, :image_id
|
||||
|
||||
menu priority: 4
|
||||
menu priority: 4, label: "👥 Members"
|
||||
|
||||
actions :all, except: [ :edit ]
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ ActiveAdmin.register Software do
|
||||
external_links_attributes: [ :id, :label, :url, :_destroy ],
|
||||
releases_attributes: [ :id, :version, :html_folder_path, :cartridge_path, :source_path, :docs_folder_path, :web_playable, :_destroy ]
|
||||
|
||||
menu priority: 2
|
||||
menu priority: 2, label: "🎮 Softwares"
|
||||
|
||||
actions :all, except: [ :edit ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user