Class: Smriti::Admin::DashboardController

Inherits:
ApplicationController show all
Defined in:
app/controllers/smriti/admin/dashboard_controller.rb

Overview

Smriti::Admin::DashboardController

Controller for the Smriti admin dashboard.

Responsibilities:

  • Provides the landing page (index) for the admin interface.
  • Authorizes access via ApplicationController#authorize_smriti!.
  • Prepares placeholder metrics content (future: aggregated refresh metrics).

Instance Method Summary collapse

Methods included from AuthBridge

#user

Instance Method Details

#indexvoid

This method returns an undefined value.

GET /:lang/admin

Renders the admin dashboard. Currently sets a placeholder message until metric aggregation is implemented.



26
27
28
29
# File 'app/controllers/smriti/admin/dashboard_controller.rb', line 26

def index
  authorize_smriti!(:view, :smriti_dashboard)
  @metrics_note = 'Metrics coming soon (see: Aggregate refresh metrics for reporting).'
end