]> git.openstreetmap.org Git - rails.git/commitdiff
Show scope names in application views
authorTom Hughes <tom@compton.nu>
Wed, 12 May 2021 20:55:00 +0000 (21:55 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 18 May 2021 11:05:33 +0000 (12:05 +0100)
app/views/oauth2_applications/_application.html.erb
app/views/oauth2_applications/show.html.erb

index eb7f7ee0e102cc8ee826cc57c2b408f3d52bccc1..f08f7be9314a82c66e38e6a4d057e319364d9f8d 100644 (file)
@@ -10,7 +10,7 @@
   <td class="align-middle">
     <ul class="list-unstyled mb-0">
       <% application.scopes.each do |scope| -%>
-        <li><%= t "oauth.scopes.#{scope}" %></li>
+        <li><%= t "oauth.scopes.#{scope}" %> <code class="text-muted">(<%= scope %>)</code></li>
       <% end -%>
     </ul>
   </td>
index e6fe3d3e8d4dd8e1da80ce97d1c77df9cb7f18fd..1a991f0c6de004cc780a209bd8fe9be999ebc01e 100644 (file)
@@ -26,7 +26,7 @@
     <td>
       <ul class="list-unstyled mb-0">
         <% @application.scopes.each do |scope| -%>
-          <li><%= t "oauth.scopes.#{scope}" %></li>
+          <li><%= t "oauth.scopes.#{scope}" %> <code class="text-muted">(<%= scope %>)</code></li>
         <% end -%>
       </ul>
     </td>