Use _mod suffix for the route names for consistency
This commit is contained in:
parent
bf4691b7ed
commit
28c914565f
|
@ -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')
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
<span>Admin:</span>
|
||||
<%= 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' %>
|
||||
<% } =%>
|
||||
|
|
Loading…
Reference in a new issue