From 28c914565ffd292180cf11a5266aa365c62b27de Mon Sep 17 00:00:00 2001 From: swag Date: Fri, 21 Apr 2023 23:55:49 -0400 Subject: [PATCH] Use _mod suffix for the route names for consistency --- lib/PostText.pm | 4 ++-- templates/layouts/default.html.ep | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/PostText.pm b/lib/PostText.pm index 758df99..3edf1df 100644 --- a/lib/PostText.pm +++ b/lib/PostText.pm @@ -210,11 +210,11 @@ sub startup($self) { # lock() is a builtin so use _acct suffix $mod_admin->any([qw{GET POST}], '/lock') ->to('moderator#lock_acct') - ->name('lock_acct'); + ->name('lock_mod'); $mod_admin->any([qw{GET POST}], '/unlock') ->to('moderator#unlock_acct') - ->name('unlock_acct'); + ->name('unlock_mod'); $mod_admin->any([qw{GET POST}], '/promote') ->to('moderator#promote') diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index bdee722..57bdf0e 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -28,8 +28,8 @@ Admin: <%= link_to Create => 'create_mod' %> <%= link_to Reset => 'admin_reset' %> - <%= link_to Lock => 'lock_acct' %> - <%= link_to Unlock => 'unlock_acct' %> + <%= link_to Lock => 'lock_mod' %> + <%= link_to Unlock => 'unlock_mod' %> <%= link_to Promote => 'promote_mod' %> <%= link_to Demote => 'demote_admin' %> <% } =%>