|
|
|
@ -301,6 +301,16 @@ sub do_sync_ssl ( $c ) { |
|
|
|
return $c->redirect_success( 'show_admin_jobs', 'Scheduled job to sync SSL certs.' ); |
|
|
|
return $c->redirect_success( 'show_admin_jobs', 'Scheduled job to sync SSL certs.' ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#== |
|
|
|
|
|
|
|
# GET /admin/alerts | show_admin_alerts |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# This route shows alerts that have been send through the system_notes table |
|
|
|
|
|
|
|
#== |
|
|
|
|
|
|
|
sub alerts ( $c ) { |
|
|
|
|
|
|
|
push @{$c->stash->{alerts}}, |
|
|
|
|
|
|
|
$c->db->system_notes( { }, { order_by => { -desc => 'created_at' } } )->all; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#== |
|
|
|
#== |
|
|
|
# POST /admin/alert/read | do_admin_alert_read |
|
|
|
# POST /admin/alert/read | do_admin_alert_read |
|
|
|
# nid | The ID for the system_note |
|
|
|
# nid | The ID for the system_note |
|
|
|
|