WarpEngine dropdown

This commit is contained in:
2026-08-06 16:22:17 +02:00
parent b1139a43bc
commit c853cfadbc
8 changed files with 8 additions and 8 deletions
@@ -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 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 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 priority: 10, label: "🔧 CI Repos"
menu parent: "WarpEngine", priority: 10, label: "🔧 CI Repos"
config.sort_order = "repo_name_asc"
config.batch_actions = false
+1 -1
View File
@@ -1,7 +1,7 @@
ActiveAdmin.register WarpEngine::Download, as: "Download" do
actions :index, :show
menu 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 -1
View File
@@ -1,5 +1,5 @@
ActiveAdmin.register_page "Files" do
menu priority: 6, label: "📁 Files"
menu parent: "WarpEngine", priority: 6, label: "📁 Files"
content do
service = WarpEngine::FileManagerService.new
+1 -1
View File
@@ -1,7 +1,7 @@
ActiveAdmin.register WarpEngine::Image, as: "Image" do
permit_params :file_upload
menu 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 priority: 5, label: "🔗 Platform Links"
menu parent: "WarpEngine", priority: 5, label: "🔗 Platform Links"
config.sort_order = "platform_asc"
+1 -1
View File
@@ -6,7 +6,7 @@ ActiveAdmin.register WarpEngine::Software, as: "Software" do
releases_attributes: [ :id, :version, :_destroy,
{ release_assets_attributes: [ :id, :kind, :path, :_destroy ] } ]
menu priority: 2, label: "🎮 Softwares"
menu parent: "WarpEngine", priority: 2, label: "🎮 Softwares"
actions :all, except: [ :edit ]