Use _mod suffix for the route names for consistency

This commit is contained in:
swag 2023-04-21 23:55:49 -04:00
parent bf4691b7ed
commit 28c914565f
2 changed files with 4 additions and 4 deletions

View File

@ -210,11 +210,11 @@ sub startup($self) {
# lock() is a builtin so use _acct suffix # lock() is a builtin so use _acct suffix
$mod_admin->any([qw{GET POST}], '/lock') $mod_admin->any([qw{GET POST}], '/lock')
->to('moderator#lock_acct') ->to('moderator#lock_acct')
->name('lock_acct'); ->name('lock_mod');
$mod_admin->any([qw{GET POST}], '/unlock') $mod_admin->any([qw{GET POST}], '/unlock')
->to('moderator#unlock_acct') ->to('moderator#unlock_acct')
->name('unlock_acct'); ->name('unlock_mod');
$mod_admin->any([qw{GET POST}], '/promote') $mod_admin->any([qw{GET POST}], '/promote')
->to('moderator#promote') ->to('moderator#promote')

View File

@ -28,8 +28,8 @@
<span>Admin:</span> <span>Admin:</span>
<%= link_to Create => 'create_mod' %> <%= link_to Create => 'create_mod' %>
<%= link_to Reset => 'admin_reset' %> <%= link_to Reset => 'admin_reset' %>
<%= link_to Lock => 'lock_acct' %> <%= link_to Lock => 'lock_mod' %>
<%= link_to Unlock => 'unlock_acct' %> <%= link_to Unlock => 'unlock_mod' %>
<%= link_to Promote => 'promote_mod' %> <%= link_to Promote => 'promote_mod' %>
<%= link_to Demote => 'demote_admin' %> <%= link_to Demote => 'demote_admin' %>
<% } =%> <% } =%>