Highlight moderator-only scopes when showing authorizations
This commit is contained in:
parent
a7ba87340d
commit
fb1ebf8925
5 changed files with 17 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
|||
<td class="align-middle">
|
||||
<ul class="list-unstyled mb-0">
|
||||
<% application.scopes.each do |scope| -%>
|
||||
<li><%= t "oauth.scopes.#{scope}" %> <code class="text-muted">(<%= scope %>)</code></li>
|
||||
<li><%= authorization_scope(scope) %> <code class="text-muted">(<%= scope %>)</code></li>
|
||||
<% end -%>
|
||||
</ul>
|
||||
</td>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<ul>
|
||||
<% @pre_auth.scopes.each do |scope| -%>
|
||||
<li><%= t "oauth.scopes.#{scope}" %></li>
|
||||
<li><%= authorization_scope(scope) %></li>
|
||||
<% end -%>
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<td class="align-middle">
|
||||
<ul class="list-unstyled mb-0">
|
||||
<% application.authorized_scopes_for(current_user).each do |scope| -%>
|
||||
<li><%= t "oauth.scopes.#{scope}" %></li>
|
||||
<li><%= authorization_scope(scope) %></li>
|
||||
<% end -%>
|
||||
</ul>
|
||||
</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue