about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-08-25 20:03:26 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-08-25 13:03:26 +0200
commitb88635202f49c9d6f2770c70984cb232b508de52 (patch)
treee66de1106b45193e932230db8184eaa624b4dd81
parent409051c22c033160a62997831660d9dda2db7459 (diff)
Add label for application scopes (#4691)
* Add label for application scopes

* hint
-rw-r--r--app/views/settings/applications/_fields.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/settings/applications/_fields.html.haml b/app/views/settings/applications/_fields.html.haml
index 83297a1ae..b21f3cca6 100644
--- a/app/views/settings/applications/_fields.html.haml
+++ b/app/views/settings/applications/_fields.html.haml
@@ -13,9 +13,9 @@
     collection: Doorkeeper.configuration.scopes,
     wrapper: :with_label,
     include_blank: false,
+    label_method: lambda { |scope| safe_join([scope, content_tag(:span, t("doorkeeper.scopes.#{scope}"), class: 'hint')]) },
     selected: f.object.scopes.all,
     required: false,
     as: :check_boxes,
     collection_wrapper_tag: 'ul',
     item_wrapper_tag: 'li'
-