مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
initial commit from appmail
هذا الالتزام موجود في:
10
app/controllers/admin/organizations_controller.rb
Normal file
10
app/controllers/admin/organizations_controller.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class Admin::OrganizationsController < ApplicationController
|
||||
|
||||
before_action :admin_required
|
||||
before_action { params[:id] && @organization = Organization.find_by_permalink!(params[:id]) }
|
||||
|
||||
def index
|
||||
@organizations = Organization.order(:created_at => :desc).includes(:owner).page(params[:page])
|
||||
end
|
||||
|
||||
end
|
||||
10
app/controllers/admin/stats_controller.rb
Normal file
10
app/controllers/admin/stats_controller.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class Admin::StatsController < ApplicationController
|
||||
|
||||
before_action :admin_required
|
||||
|
||||
def stats
|
||||
@stats = Statistic.global
|
||||
@queue_size = QueuedMessage.unlocked.retriable.count
|
||||
end
|
||||
|
||||
end
|
||||
المرجع في مشكلة جديدة
حظر مستخدم