This commit is contained in:
@@ -2,7 +2,7 @@ ActiveAdmin.register WarpEngine::ApplicationToken, as: "Application Token" do
|
||||
actions :index, :show, :new, :create, :edit, :update, :destroy
|
||||
permit_params :name, :owner_id, :expires_at, :scopes_string, :unrestricted
|
||||
|
||||
menu parent: "WarpEngine", priority: 9, label: "🎟️ App Tokens"
|
||||
menu parent: "🌀 WarpEngine", priority: 9, label: "🎟️ App Tokens"
|
||||
|
||||
config.sort_order = "created_at_desc"
|
||||
config.batch_actions = false
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
ActiveAdmin.register_page "CI Dashboard" do
|
||||
menu parent: "WarpEngine", priority: 11, label: "🚀 CI Dashboard"
|
||||
menu parent: "🌀 WarpEngine", priority: 11, label: "🚀 CI Dashboard"
|
||||
|
||||
content do
|
||||
if WarpEngine.woodpecker_configured?
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
ActiveAdmin.register WarpEngine::CiRepository, as: "CI Repository" do
|
||||
actions :index, :show, :edit, :update
|
||||
|
||||
menu parent: "WarpEngine", priority: 10, label: "🔧 CI Repos"
|
||||
menu parent: "🌀 WarpEngine", priority: 10, label: "🔧 CI Repos"
|
||||
|
||||
config.sort_order = "repo_name_asc"
|
||||
config.batch_actions = false
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
ActiveAdmin.register WarpEngine::Download, as: "Download" do
|
||||
actions :index, :show
|
||||
|
||||
menu parent: "WarpEngine", priority: 7, label: "📊 Download Stats"
|
||||
menu parent: "🌀 WarpEngine", priority: 7, label: "📊 Download Stats"
|
||||
|
||||
scope :all, default: true
|
||||
scope("Today") { |scope| scope.where("downloads.created_at >= ?", Date.current.beginning_of_day) }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
ActiveAdmin.register_page "Files" do
|
||||
menu parent: "WarpEngine", priority: 6, label: "📁 Files"
|
||||
menu parent: "🌀 WarpEngine", priority: 6, label: "📁 Files"
|
||||
|
||||
content do
|
||||
service = WarpEngine::FileManagerService.new
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
ActiveAdmin.register WarpEngine::Image, as: "Image" do
|
||||
permit_params :file_upload
|
||||
|
||||
menu parent: "WarpEngine", priority: 5, label: "🖼️ Images"
|
||||
menu parent: "🌀 WarpEngine", priority: 5, label: "🖼️ Images"
|
||||
|
||||
# SoftwareImage a natív használó; a hoston regisztrált image_owners
|
||||
# (WarpEngine.config) további használókat adhat hozzá (pl. TTG Member).
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
ActiveAdmin.register WarpEngine::PlatformLink, as: "Platform Link" do
|
||||
permit_params :name, :url, :platform, :position
|
||||
|
||||
menu parent: "WarpEngine", priority: 5, label: "🔗 Platform Links"
|
||||
menu parent: "🌀 WarpEngine", priority: 5, label: "🔗 Platform Links"
|
||||
|
||||
config.sort_order = "platform_asc"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ ActiveAdmin.register WarpEngine::Software, as: "Software" do
|
||||
releases_attributes: [ :id, :version, :_destroy,
|
||||
{ release_assets_attributes: [ :id, :kind, :path, :_destroy ] } ]
|
||||
|
||||
menu parent: "WarpEngine", priority: 2, label: "🎮 Softwares"
|
||||
menu parent: "🌀 WarpEngine", priority: 2, label: "🎮 Softwares"
|
||||
|
||||
actions :all, except: [ :edit ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user